1 Array.prototype.shuffle = function () {
2 for (let i = this.length - 1; i > 0; i--) {
3 const j = Math.floor(Math.random() * (i + 1)); // random index 0..i
4 [this[i], this[j]] = [this[j], this[i]]; // swap elements
11 let rows = Object.values(json);
12 return rows.shuffle();
16 fetch(dataurl).then(res => res.json()).then(json => {
17 this.words = this.dataselect(json)
22 constructor(dataurl) {