def test_cross_random(): assert get_pyrandom(get_nprandom(1)).random() == get_pyrandom(get_nprandom(1)).random() assert get_nprandom(get_pyrandom(1)).rand() == get_nprandom(get_pyrandom(1)).rand()
def test_cross_random(): assert get_pyrandom(get_nprandom(1)).random() == get_pyrandom( get_nprandom(1)).random() assert get_nprandom(get_pyrandom(1)).rand() == get_nprandom( get_pyrandom(1)).rand()
def test_pyrandom(): assert get_pyrandom(None).random() != get_pyrandom(None).random() assert get_pyrandom(1).random() != get_pyrandom(2).random() assert get_pyrandom(1).random() == get_pyrandom(1).random() r = get_pyrandom(1) assert get_pyrandom(r).random() != r.random()