Random Extensions.Fill(Random, IList<Int 32>) Method
Fills an Int32 array with random numbers.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static void Fill(
this Random random,
IList<int> samples
)
Parameters
- random Random
- A random number generator used to generate the samples.
- samples IList<Int32>
- 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).Exceptions
Argument | samples is null. |