update test_random.py and test_random_state.py
#2349
Merged
test_random.py and test_random_state.py
#2349