def test_random_state_np_random_RandomState(self): seed = 1 rng = np.random.RandomState(seed) random_state = self.instantiate_random_state(random_state=rng) assert_true( np.all( (np.random.RandomState(seed).rand(10), random_state.rand(10))))
def test_random_state_np_random_RandomState(self): seed = 1 rng = np.random.RandomState(seed) random_state = self.instantiate_random_state(random_state=rng) assert_true(np.all((np.random.RandomState(seed).rand(10), random_state.rand(10))))
def test_random_state_int(self): seed = 1 random_state = self.instantiate_random_state(random_state=seed) assert_true(np.all((np.random.RandomState(seed).rand(10), random_state.rand(10))))
def test_random_state_int(self): seed = 1 random_state = self.instantiate_random_state(random_state=seed) assert_true( np.all( (np.random.RandomState(seed).rand(10), random_state.rand(10))))