Fills the given array with next random numbers from this stream.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public void Fill<T>( IRandomNumberDistribution<T> distribution, T[] r, int startIndex, int n ) |
| Visual Basic (Declaration) |
|---|
Public Sub Fill(Of T) ( _ distribution As IRandomNumberDistribution(Of T), _ r As T(), _ startIndex As Integer, _ n As Integer _ ) |
| Visual C++ |
|---|
public: generic<typename T> void Fill( IRandomNumberDistribution<T>^ distribution, array<T>^ r, int startIndex, int n ) |
Parameters
- distribution
- Type: CenterSpace.NMath.Core..::.IRandomNumberDistribution<(Of <(T>)>)
Desired distribution of the random numbers.
- r
- Type: array<
T
>[]()[]
Array to be filled.
- startIndex
- Type: System..::.Int32
Index at which to begin placing the random numbers.
- n
- Type: System..::.Int32
The number of random numbers produced.
Type Parameters
- T
- Random number type.