#NEWLINE# def from_seed( seed , bits ) : #NEWLINE# #INDENT# seed = ( ( seed ^ 25214903917 ) & ( ( 1 << 48 ) - 1 ) ) #NEWLINE# gen = lcg . from_seed ( seed , MULTIPLIER , INCREMENT , MODULUS , 0 ) #NEWLINE# for prediction in gen : #NEWLINE# #INDENT# ( yield ( gen >> ( 48 - bits ) ) )