diff --git a/src/core/PseudoRandom.ts b/src/core/PseudoRandom.ts index 4fa8619f8..985de26fd 100644 --- a/src/core/PseudoRandom.ts +++ b/src/core/PseudoRandom.ts @@ -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]]; }