X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2Falea.js;h=76d9c38ecf0d47075a90d33a53f762fdba3d0b22;hp=337b25fa46dd0d556d34d2630360f3f8bf9d89cb;hb=e27329232b83700d63c8fb52af6f4c2eec9a569c;hpb=c75838d9d5b52d1fbd3e419c5073ef0cfb95f40a diff --git a/client/src/utils/alea.js b/client/src/utils/alea.js index 337b25fa..76d9c38e 100644 --- a/client/src/utils/alea.js +++ b/client/src/utils/alea.js @@ -22,7 +22,7 @@ export function sample (arr, n) let cpArr = arr.map(e => e); for (let index = 0; index < n; index++) { - const rand = getRandInt(index, n); + const rand = random(index, n); const temp = cpArr[index]; cpArr[index] = cpArr[rand]; cpArr[rand] = temp;