Uniform
self, min, max, rng=None) Uniform(
Uniform distribution between min
and max
.
The returned values are floats in the range [min, max].
Parameters
Name | Type | Description | Default |
---|---|---|---|
min | float | minimum value. | required |
max | float | maximum value. | required |
rng | np.random.Generator | (optional) random number generator. If left None, np.random.default_rng() is used. |
None |
Methods
Name | Description |
---|---|
get_values | Returns a Numpy array with the given shape. |
get_values
get_values(shape)
Returns a Numpy array with the given shape.
Parameters
Name | Type | Description | Default |
---|---|---|---|
shape | tuple | shape of the array. | required |