Random word from file #5

This commit is contained in:
2017-05-02 18:22:29 +02:00
parent 83ffee4315
commit 37b129b811
5 changed files with 141 additions and 9 deletions

9
prng.h Normal file
View 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);