forked from 0x2620/oxjs
minor changes, mostly documentation
This commit is contained in:
parent
9032821f14
commit
25c25c76c7
4 changed files with 11 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue