aiie/lcg.h

18 lines
176 B
C
Raw Normal View History

2017-02-28 22:51:42 +00:00
#ifndef __LCG_H
#define __LCG_H
#include <stdint.h>
class LCG {
public:
LCG(uint16_t s);
void srnd(uint16_t s);
uint8_t rnd();
private:
uint16_t seed;
};
#endif