Update random.js

This commit is contained in:
Namhyeon Go 2022-01-09 01:42:53 +09:00 committed by GitHub
parent ea20382f62
commit a11b7f7ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;