starting "tv" mode

This commit is contained in:
Jules Laplace
2015-07-11 01:52:41 -04:00
parent 2646007c2a
commit ee86ef7130
7 changed files with 579 additions and 0 deletions

6
tv/js/vendor/util.js vendored Normal file
View File

@@ -0,0 +1,6 @@
function random(){ return Math.random() }
function rand(n){ return (Math.random()*n) }
function randint(n){ return rand(n)|0 }
function randrange(a,b){ return a + rand(b-a) }
function randsign(){ return random() >= 0.5 ? -1 : 1 }
function choice(a){ return a[randint(a.length)] }