Method randomUniform
val randomUniform: Random -> 'T * 'T -> int64 list -> Tensor<'T>
Creates a tensor filled with random floating-point numbers from a uniform distribution.
Declaration
val randomUniform: rnd:Random -> minValue:'T * maxValue:'T -> shp:int64 list -> Tensor<'T>
Parameters
| Type | Name | Description |
|---|---|---|
| System.Random | rnd | The random generator to use. |
| 'T | minValue | The minimum value. |
| 'T | maxValue | The maximum value. |
| int64 list | shp | The shape of the new tensor. |
Returns
| Type | Description |
|---|---|
| Tensor<'T> | A tensor of specified shape filled with random numbers. |
Type Parameters
| Name | Description |
|---|---|
| 'T |