def _copy_np_state(r, ptr):
 (ints, index) = r.get_state()[1:3]
 _helperlib.rnd_set_state(ptr, (index, [int(x) for x in ints]))
 return (ints, index)

def _copy_np_state ( r , ptr ) : ( ints , index ) = r . get_state ( ) [ 1 : 3 ] _helperlib . rnd_set_state ( ptr , ( index , [ int ( x ) for x in ints ] ) ) return ( ints , index )
copy state of numpy random *r* to numba state *ptr* .