|
MatrixRandomT Method (Int32, Int32, IRandomNumberGeneratorT, T)
|
Creates a rows-by-cols matrix with random data.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static T[,] Random<T>(
int rows,
int cols,
IRandomNumberGenerator<T> generator,
T[,] result = null
)
Public Shared Function Random(Of T) (
rows As Integer,
cols As Integer,
generator As IRandomNumberGenerator(Of T),
Optional result As T(,) = Nothing
) As T(,)
Request Example
View SourceParameters
- rows
- Type: SystemInt32
- cols
- Type: SystemInt32
- generator
- Type: Accord.Math.RandomIRandomNumberGeneratorT
- result (Optional)
- Type: T
Type Parameters
- T
Return Value
Type:
TSee Also