word/quiz: fisher-yates shuffle algorithm
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 29 Dec 2021 05:04:34 +0000 (06:04 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 31 Dec 2021 04:29:05 +0000 (05:29 +0100)
commit26074080358f5993e59f19526704c58c1de2606f
tree5a9d21ac36fbc6f76f9f18ffda18926f2a4c5c58
parent557e9a9b737294f5e170f8f5474ff750ab72cb4a
word/quiz: fisher-yates shuffle algorithm

Fixes very bad randomisation in some browsers.

Reference: <https://javascript.info/array-methods#shuffle-an-array>
word/quiz.js