| SubsetSample(Int32, RandGenMTwist) 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,
RandGenMTwist rand
)
Public Shared Function Sample (
n As Integer,
rand As RandGenMTwist
) As Subset
public:
static Subset^ Sample(
int n,
RandGenMTwist^ rand
)
static member Sample :
n : int *
rand : RandGenMTwist -> Subset
Parameters
- n Int32
- The number of elements.
- rand RandGenMTwist
- Random number generator.
Return Value
SubsetA subset containing a random shuffle of
0...n-1.
See Also