next up previous contents index
suivant: Decomposition as a product monter: Permutations précédent: Permutations   Table des matières   Index


Random permutation : randperm

randperm takes as argument an integer n.
randperm returns a random permutation of [0..n - 1].
Input :
randperm(3)
Output :
[2,0,1]



giac documentation written by Renée De Graeve and Bernard Parisse