summaryrefslogtreecommitdiff
path: root/client/lib/util.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-04-23 22:17:43 -0400
committerJules Laplace <jules@okfoc.us>2017-04-23 22:17:43 -0400
commited62a07b37e666d1a5e972847460dee7f90b3987 (patch)
tree0ea651522ba3d46f58585b3847c175b8221b7e91 /client/lib/util.js
triangle interval map
Diffstat (limited to 'client/lib/util.js')
-rw-r--r--client/lib/util.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/lib/util.js b/client/lib/util.js
new file mode 100644
index 0000000..b2d95f5
--- /dev/null
+++ b/client/lib/util.js
@@ -0,0 +1,3 @@
+function choice (a){ return a[ Math.floor(Math.random() * a.length) ] }
+
+export { choice } \ No newline at end of file