Update rand.js

This commit is contained in:
Namhyeon Go 2022-01-15 21:35:14 +09:00 committed by GitHub
parent 2510b9afaf
commit e8fd9adf73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,11 +53,18 @@ function uuidv4() {
});
}
function shffle(arr) {
return arr.sort(function() {
return randomize() - 0.5;
});
}
exports.randomize = randomize;
exports.getInt = getInt;
exports.one = one;
exports.makeString = makeString;
exports.uuidv4 = uuidv4;
exports.shffle = shffle;
exports.VERSIONINFO = "Random Module (random.js) version 0.2";
exports.global = global;