Extracted from Pike v7.4 release 341 at 2005-11-21.
pike.ida.liu.se
[Top]
predef::
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

shuffle()