1 // prandom - PREDICTABLE random number generator (not seeded yet)
8 c = crc16(FALSE, strcat(ftos(prandom_seed), ftos(prandom_seed + M_PI)));
11 #ifdef USE_PRANDOM_DEBUG
12 print("RANDOM -> ", ftos(c), "\n");
15 return c / 65536; // in [0..1[
33 void psrandom(float seed)
36 #ifdef USE_PRANDOM_DEBUG
37 print("SRANDOM ", ftos(seed), "\n");
41 #ifdef USE_PRANDOM_DEBUG
44 print("Current random seed = ", ftos(prandom_seed), "\n");