Changed math.random() to nextint

This commit is contained in:
NewHappyRabbit
2025-02-18 09:38:50 +02:00
parent 2249f5207e
commit 53e48ed69a
+1 -1
View File
@@ -50,7 +50,7 @@ export class PseudoRandom {
shuffleArray(array: any[]) {
for (let i = array.length - 1; i >= 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
const j = Math.floor(this.nextInt(0, i + 1));
[array[i], array[j]] = [array[j], array[i]];
}