Returns a shuffled copy of the input array.
import { Arrays } from 'https://unpkg.com/ixfx/dist/data.js';const d = [1, 2, 3, 4];const s = Arrays.shuffle(d);// d: [1, 2, 3, 4], s: [3, 1, 2, 4] Copy
import { Arrays } from 'https://unpkg.com/ixfx/dist/data.js';const d = [1, 2, 3, 4];const s = Arrays.shuffle(d);// d: [1, 2, 3, 4], s: [3, 1, 2, 4]
Type of array items
Random generator. Math.random by default.
Math.random
Copy with items moved around randomly
Returns a shuffled copy of the input array.
Example