-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Numpy changed the way to generate a random array.
Lines 173 to 183 in 1d7b1ba
| if value in ['random', 'random_int']: | |
| out = self.get_uniform_copy() | |
| shape = out.shape | |
| seed = kwargs.get('seed', None) | |
| if seed is not None: | |
| numpy.random.seed(seed) | |
| if value == 'random': | |
| out.fill(numpy.random.random_sample(shape)) | |
| elif value == 'random_int': | |
| max_value = kwargs.get('max_value', 100) | |
| out.fill(numpy.random.randint(max_value,size=shape)) |