| RandomNumberStreamFillT(IRandomNumberDistributionT, T, Int32, Int32) Method |
Fills the given array with next random numbers from this stream.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void Fill<T>(
IRandomNumberDistribution<T> distribution,
T[] r,
int startIndex,
int n
)
Public Sub Fill(Of T) (
distribution As IRandomNumberDistribution(Of T),
r As T(),
startIndex As Integer,
n As Integer
)
public:
generic<typename T>
void Fill(
IRandomNumberDistribution<T>^ distribution,
array<T>^ r,
int startIndex,
int n
)
member Fill :
distribution : IRandomNumberDistribution<'T> *
r : 'T[] *
startIndex : int *
n : int -> unit
Parameters
- distribution IRandomNumberDistributionT
- Desired distribution of the random numbers.
- r T
- Array to be filled.
- startIndex Int32
- Index at which to begin placing the random numbers.
- n Int32
- The number of random numbers produced.
Type Parameters
- T
- Random number type.
See Also