diff options
Diffstat (limited to 'client/lib/util.js')
| -rw-r--r-- | client/lib/util.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/lib/util.js b/client/lib/util.js index b2d95f5..7c3082d 100644 --- a/client/lib/util.js +++ b/client/lib/util.js @@ -1,3 +1,4 @@ function choice (a){ return a[ Math.floor(Math.random() * a.length) ] } +function mod(n,m){ return n-(m * Math.floor(n/m)) } -export { choice }
\ No newline at end of file +export { choice, mod } |
