randperm takes as argument an integer n. randperm returns a random permutation of [0..n−1]. Input :
Output :