PermutationGetRandomPermutation Method
Get a random permutation.
Namespace: Meta.Numerics.FunctionsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
public static Permutation GetRandomPermutation(
int dimension,
Random rng
)
Public Shared Function GetRandomPermutation (
dimension As Integer,
rng As Random
) As Permutation
public:
static Permutation^ GetRandomPermutation(
int dimension,
Random^ rng
)
static member GetRandomPermutation :
dimension : int *
rng : Random -> Permutation
- dimension Int32
- The number of elements on which the permutation acts.
- rng Random
- A random number generator.
PermutationA random permutation of the specified dimension. All permutations of the specified dimension are equally likely.