- (make-random-permutations [randoms: (RANDOMS random-integer/current)]) -> (procedure (integer) vector)procedure
- (random-permutation! VECTOR [randoms: (RANDOMS random-integer/current)]) -> vectorprocedure
Performs the "Knuth shuffle" (or "Fisher-Yates shuffle").
Fills VECTOR with a random permutation of the finite set {0 ... N-1}, where N = (vector-length VECTOR).
RANDOMS is a procedure: (exact-real) -> exact-real
(From Gambit)