import { default } from "https://deno.land/x/simplestatistics@v7.8.3/src/shuffle_in_place.js";
A Fisher-Yates shuffle in-place - which means that it will change the order of the original array by reference.
This is an algorithm that generates a random permutation of a set.
Examples
var x = [1, 2, 3, 4];
shuffleInPlace(x);
// x is shuffled to a value like [2, 1, 4, 3]
var x = [1, 2, 3, 4]; shuffleInPlace(x); // x is shuffled to a value like [2, 1, 4, 3]