+Array.prototype.shuffle = function () {
+ return this.sort(() => {return .5 - Math.random()});
+};
+
class WordQuiz {
dataselect(json) {
let rows = Object.values(json);
- return rows.sort(() => {return .5 - Math.random()}) // shuffle
+ return rows.shuffle();
}
load(dataurl) {