| RandomHelperNextMatrixD Method |
Fills a
MatrixD with random values.
Namespace: DigitalRune.Mathematics.StatisticsAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static void NextMatrixD(
this Random random,
MatrixD matrix,
double min,
double max
)
<ExtensionAttribute>
Public Shared Sub NextMatrixD (
random As Random,
matrix As MatrixD,
min As Double,
max As Double
)
public:
[ExtensionAttribute]
static void NextMatrixD(
Random^ random,
MatrixD^ matrix,
double min,
double max
)
[<ExtensionAttribute>]
static member NextMatrixD :
random : Random *
matrix : MatrixD *
min : float *
max : float -> unit
Parameters
- random
- Type: SystemRandom
The random number generator. If this parameter is , the global random
number generator (see Random) is used.
- matrix
- Type: DigitalRune.Mathematics.AlgebraMatrixD
The matrix that is filled with random values. - min
- Type: SystemDouble
The minimal allowed value for a matrix element. - max
- Type: SystemDouble
The maximal allowed value for a matrix element.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Random. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also