Click or drag to resize

IntegerArrayRandom Method (Int32, DUDistribution)

Creates the IntegerArray of given size with elements that are sampled from the specified distribution.

Namespace:  FinMath.DataStructures
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public static IntegerArray Random(
	int size,
	DUDistribution distribution
)

Parameters

size
Type: SystemInt32
The size of IntegerArray to create.
distribution
Type: FinMath.Statistics.DistributionsDUDistribution
Discrete univariate distribution.

Return Value

Type: IntegerArray
The created IntegerArray.
See Also