| RandomHelperNextVectorF Method |
Fills a
VectorF 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 NextVectorF(
this Random random,
VectorF vector,
float min,
float max
)
<ExtensionAttribute>
Public Shared Sub NextVectorF (
random As Random,
vector As VectorF,
min As Single,
max As Single
)
public:
[ExtensionAttribute]
static void NextVectorF(
Random^ random,
VectorF^ vector,
float min,
float max
)
[<ExtensionAttribute>]
static member NextVectorF :
random : Random *
vector : VectorF *
min : float32 *
max : float32 -> unit
Parameters
- random
- Type: SystemRandom
The random number generator. If this parameter is , the global random
number generator (see Random) is used.
- vector
- Type: DigitalRune.Mathematics.AlgebraVectorF
The vector that should be filled with random values. - min
- Type: SystemSingle
The minimal allowed value for a vector element. - max
- Type: SystemSingle
The maximal allowed value for a vector element.
Return Value
Type:
A random
VectorF.
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