randomInt
fun <T : DType, V> randomInt(shape: Shape, dtype: T, random: Random, generator: (size: Int, random: Random) -> V): TensorData<T, *>(source)
Creates a tensor filled with random values from uniform distribution [0, 1) for floating point types or [0, maxValue) for integer types.
Return
TensorData filled with random values
Parameters
T
the data type constraint extending DType
shape
the shape of the tensor to create
dtype
the data type instance
random
the random number generator (optional, uses default if not provided)