mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-26 08:44:47 +02:00
20 lines
387 B
C++
20 lines
387 B
C++
#include "math/math_util.h"
|
|
#include <math.h>
|
|
#include <stdlib.h>
|
|
|
|
/*
|
|
static unsigned int randSeed = 22222; // Change this for different random sequences.
|
|
|
|
void SetSeed(unsigned int seed) {
|
|
randSeed = seed * 382792592;
|
|
}
|
|
|
|
unsigned int GenerateRandomNumber() {
|
|
randSeed = (randSeed * 196314165) + 907633515;
|
|
randSeed ^= _rotl(randSeed, 13);
|
|
return randSeed;
|
|
}*/
|
|
|
|
#include <math.h>
|
|
|