Const
random.Const(self, value)Constant “random” distribution, returning the same value.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | float | constant value. | required |
Methods
| Name | Description |
|---|---|
| sample | Samples from the distribution and returns an array of the desired shape. |
sample
random.Const.sample(shape)Samples from the distribution and returns an array of the desired shape.