Files
2010-07-27 16:58:17 +00:00

10 lines
149 B
C

#include <stdlib.h>
static unsigned int a=1;
int rand(void)
{ return (a=a*1103515245+12345)%RAND_MAX; }
void srand(unsigned int seed)
{ a=seed; }