projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Chakart: King Boo bonus shouldn't add pieces in reserve
[vchess.git]
/
client
/
src
/
utils
/
alea.js
diff --git
a/client/src/utils/alea.js
b/client/src/utils/alea.js
index
1f1d146
..
1b112ef
100644
(file)
--- a/
client/src/utils/alea.js
+++ b/
client/src/utils/alea.js
@@
-16,7
+16,7
@@
export function randInt(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
return Math.floor(Math.random() * (max - min)) + min;
}
-// Inspired by https://github.com/jashkenas/underscore
/blob/master/underscore.js
+// Inspired by https://github.com/jashkenas/underscore
export function sample(arr, n) {
n = n || 1;
let cpArr = arr.map(e => e);
export function sample(arr, n) {
n = n || 1;
let cpArr = arr.map(e => e);