def gen_random_state():
 M1 = 2147483647
 M2 = 2147462579
 return (np.random.randint(0, M1, 3).tolist() + np.random.randint(0, M2, 3).tolist())

def gen_random_state ( ) : M1 = 2147483647 M2 = 2147462579 return ( np . random . randint ( 0 , M1 , 3 ) . tolist ( ) + np . random . randint ( 0 , M2 , 3 ) . tolist ( ) )
helper to generate a random state for mrg_randomstreams .