X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2Falea.js;h=1b112ef99e5e26f33d304749f758e206094d58c1;hp=1f1d1460180ac6f5de9c61b47061de99827c37ba;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hpb=9edfb7146fdc4dd08914b2a117d2852e705353aa diff --git a/client/src/utils/alea.js b/client/src/utils/alea.js index 1f1d1460..1b112ef9 100644 --- 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; } -// 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);