Skip to main content

array_shuffle

array_shuffle(random, array)

Randomly re-orders items in-place

Kind: global function

ParamTypeDescription
randomfunctionrandom number generator; can use Math.random. Must return a value between 0 and 1
arrayArray.<T>what to shuffle