Fills an
Int32 array with random numbers.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static void Fill(
this Random random,
IList<int> samples
)
<ExtensionAttribute>
Public Shared Sub Fill (
random As Random,
samples As IList(Of Integer)
)
public:
[ExtensionAttribute]
static void Fill(
Random^ random,
IList<int>^ samples
)
[<ExtensionAttribute>]
static member Fill :
random : Random *
samples : IList<int> -> unit
Parameters
- random
- Type: SystemRandom
A random number generator used to generate
the samples. - samples
- Type: System.Collections.GenericIListInt32
A Int32 array.
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).
Reference