Examples using... rand.Perm()

Recent
Perm returns, as a slice of n ints, a pseudo-random permutation of the integers [0,n) from the default Source.