mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update random.js
This commit is contained in:
parent
ea20382f62
commit
a11b7f7ea9
|
@ -5,7 +5,7 @@ function getInt(min, max) {
|
|||
}
|
||||
|
||||
function one(arr) {
|
||||
return arr[range(0, arr.length - 1)];
|
||||
return arr[getInt(0, arr.length - 1)];
|
||||
}
|
||||
|
||||
exports.getInt = getInt;
|
||||
|
|
Loading…
Reference in New Issue
Block a user