mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Better comment for randArray
This commit is contained in:
parent
08a1668bcc
commit
524b2318f8
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Rand
|
|||
rand2: (min, max) =>
|
||||
min + @rand max - min
|
||||
|
||||
# return an array of randomly shuffled numbers from 0 to n, exclusive
|
||||
# return an array of numbers from 0 to n-1, shuffled
|
||||
randArray: (n) =>
|
||||
array = ( i for i in [0..(n-1)] )
|
||||
|
||||
|
|
Loading…
Reference in a new issue