Random word from file #5
This commit is contained in:
9
prng.h
Normal file
9
prng.h
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Pseudo random number generator using the Mersenne Twister algorithm
|
||||
* This code was taken from wikipedia: https://en.wikipedia.org/wiki/Mersenne_Twister
|
||||
*/
|
||||
#include <stdint.h>
|
||||
|
||||
void InitializePRNG(const uint32_t seed);
|
||||
uint32_t ExtractU32();
|
||||
int getrandom(int low, int high);
|
Reference in New Issue
Block a user