DiscreteUniform
self, min, max, seed=None) core.Random.DiscreteUniform(
Discrete uniform distribution between min
and max
.
The returned values are integers in the range [min, max].
Parameters
Name | Type | Description | Default |
---|---|---|---|
min | int | minimum value. | required |
max | int | maximum value. | required |
seed | int | (optional) seed for the random generator. If left None, the value set in ann.setup() is used. |
None |
Methods
Name | Description |
---|---|
get_values | Returns a Numpy array with the given shape. |
get_values
core.Random.DiscreteUniform.get_values(shape)
Returns a Numpy array with the given shape.
Parameters
Name | Type | Description | Default |
---|---|---|---|
shape | tuple | Shape of the array. | required |
Returns
Name | Type | Description |
---|---|---|
np.ndarray | Array. |