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