diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-04-22 00:43:57 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-04-22 00:43:57 -0400 |
| commit | a6581c55ba134b3c9547968315c8915ae52fe016 (patch) | |
| tree | 2accb1cd88357446e06fbc77634a4bc7b43c3e72 /client/lib/util.js | |
microtonal sampler
Diffstat (limited to 'client/lib/util.js')
| -rw-r--r-- | client/lib/util.js | 3 |
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 |
