mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-22 15:31:41 +00:00
18 lines
176 B
C
18 lines
176 B
C
|
#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
|