projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve notification system after a move or at new game
[vchess.git]
/
client
/
src
/
utils
/
alea.js
diff --git
a/client/src/utils/alea.js
b/client/src/utils/alea.js
index
337b25f
..
76d9c38
100644
(file)
--- 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;