1
0
Fork 0
forked from 0x2620/oxjs

minor changes, mostly documentation

This commit is contained in:
rlx 2012-03-30 14:11:29 +00:00
commit 25c25c76c7
4 changed files with 11 additions and 8 deletions

View file

@ -103,9 +103,9 @@ Ox.rad = function(deg) {
/*@
Ox.random <f> Returns a random integer within a given range
() -> 0 or 1
(max) -> Integer between 0 (inclusive) and max (exclusive)
(min, max) -> Integer between min (inclusive) and max (exclusive)
() -> <n> 0 or 1
(max) -> <n> Integer between 0 (inclusive) and max (exclusive)
(min, max) -> <n> Integer between min (inclusive) and max (exclusive)
> [0, 1].indexOf(Ox.random()) > -1
true
> [0, 1, 2].indexOf(Ox.random(3)) > -1