This is a Park-Miller pseudo-random number generator:
def gen1(a=783): while True: a = (a * 48271) % 0x7fffffff yield a
The <