| SubsetSample(Int32, Int32) Method |
Returns a random shuffle of 0...n-1
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static Subset Sample(
int n,
int randomShuffleSeed
)
Public Shared Function Sample (
n As Integer,
randomShuffleSeed As Integer
) As Subset
public:
static Subset^ Sample(
int n,
int randomShuffleSeed
)
static member Sample :
n : int *
randomShuffleSeed : int -> Subset
Parameters
- n Int32
- The number of elements.
- randomShuffleSeed Int32
- Seed to the random number generator
used to implement the random shuffle.
Return Value
SubsetA subset containing a random shuffle of
0...n-1See Also