def _copy_py_state(r, ptr):
 mt = r.getstate()[1]
 (ints, index) = (mt[:(-1)], mt[(-1)])
 _helperlib.rnd_set_state(ptr, (index, list(ints)))
 return (ints, index)

def _copy_py_state ( r , ptr ) : mt = r . getstate ( ) [ 1 ] ( ints , index ) = ( mt [ : ( - 1 ) ] , mt [ ( - 1 ) ] ) _helperlib . rnd_set_state ( ptr , ( index , list ( ints ) ) ) return ( ints , index )
copy state of python random *r* to numba state *ptr* .