Click or drag to resize

SubsetSample(Int32, RandGenMTwist) Method

Returns a random shuffle of 0...n-1.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static Subset Sample(
	int n,
	RandGenMTwist rand
)

Parameters

n  Int32
The number of elements.
rand  RandGenMTwist
Random number generator.

Return Value

Subset
A subset containing a random shuffle of 0...n-1.
See Also