// Inspired by https://github.com/jashkenas/underscore
sample: function(arr, n) {
n = n || 1;
let cpArr = arr.map(e => e);
for (let index = 0; index < n; index++) {
// Inspired by https://github.com/jashkenas/underscore
sample: function(arr, n) {
n = n || 1;
let cpArr = arr.map(e => e);
for (let index = 0; index < n; index++) {