123456789101112
unsigned rand_state; void my_srand(unsigned seed) { rand_state = seed; } unsigned my_rand() { rand_state = (69069 * rand_state) + 362437; return rand_state; }