Extracted from Pike v7.3 release 18 at 2002-03-27.
pike.roxen.com
[Top]
Array

Method Array.permute()


Method permute

array Array.permute(array in, int number)

Description

Give a specified permutation of an array.

The number of permutations is equal to

sizeof(in)!
(the factorial of the size of the given array).

See also

Array.shuffle