Fills a new array with next random numbers from this stream.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public T[] Next<T>(
	IRandomNumberDistribution<T> distribution,
	int n
)
Visual Basic (Declaration)
Public Function Next(Of T) ( _
	distribution As IRandomNumberDistribution(Of T), _
	n As Integer _
) As T()
Visual C++
public:
generic<typename T>
array<T>^ Next(
	IRandomNumberDistribution<T>^ distribution, 
	int n
)

Parameters

distribution
Type: CenterSpace.NMath.Core..::.IRandomNumberDistribution<(Of <(T>)>)
Desired distribution of the random numbers.
n
Type: System..::.Int32
Number of random numbers.

Type Parameters

T
Random number type.

Return Value

Array of random numbers.

See Also