mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
Minor Modifications
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ class Util {
|
||||
}
|
||||
|
||||
static shuffle(arr) {
|
||||
for (let i = arr.length - 1; i > 0; i--) {
|
||||
for (let i = arr.length - 1; i >= 0; i--) {
|
||||
const j = Math.floor(Math.random() * (i + 1));
|
||||
const temp = arr[i];
|
||||
arr[i] = arr[j];
|
||||
|
||||
Reference in New Issue
Block a user