Returns a random shuffle of 0...n-1
Namespace:
CenterSpace.NMath.Stats
Assembly:
NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public static Subset Sample(
int n,
int randomShuffleSeed
) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Sample ( _
n As Integer, _
randomShuffleSeed As Integer _
) As Subset |
| Visual C++ |
|---|
public:
static Subset^ Sample(
int n,
int randomShuffleSeed
) |
Parameters
- n
- Type: System..::.Int32
The number of elements.
- randomShuffleSeed
- Type: System..::.Int32
Seed to the random number generator
used to implement the random shuffle.
Return Value
A subset containing a random shuffle of
0...n-1
See Also