function randomPermutation
randomPermutation<T>(): T[] | nullPick an arbitrary permutation.
Type Parameters
TParameters
x: T[]an array
optional
n: numbernumber of values [-1 ⇒ any]
optional
fr: ReadFunction<number> | null = [Math.random]random number generator ([0, 1))
Return Type
T[] | nullx' | x' = x; values are randomly shuffled