Randomize an Array with crypto
import { array } from "@rjweb/utils"const arr = ['A', 'B', 'C', 'D', 'E']array.randomizeCrypto(arr) // ['C', 'D', 'E', 'A', 'B']array.randomizeCrypto(arr) // ['E', 'A', 'C', 'B', 'D'] Copy
import { array } from "@rjweb/utils"const arr = ['A', 'B', 'C', 'D', 'E']array.randomizeCrypto(arr) // ['C', 'D', 'E', 'A', 'B']array.randomizeCrypto(arr) // ['E', 'A', 'C', 'B', 'D']
1.12.12
nodejs, browser
Randomize an Array with crypto