Darwin Help

Back to Index

CreateRandPermutation

Function CreateRandPermutation


Calling Sequence  CreateRandPermutation(n)
Parameters
NameTypeDescription

n posint 
Return Type  list(integer)
Synopsis Returns a random permutation of the integers from 1 to n.
Examples
> CreateRandPermutation(5);
[2, 1, 5, 3, 4]
See also CreateRandSeq,   Mutate,   Permutation,   Rand,   SetRand,   SetRandSeed,   Shuffle