Update rand.js

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

View File

@ -1,4 +1,4 @@
// Ramdom
// rand.js
function randomize() {
return Math.random();
@ -53,7 +53,7 @@ function uuidv4() {
});
}
function shffle(arr) {
function shuffle(arr) {
return arr.sort(function() {
return randomize() - 0.5;
});
@ -64,7 +64,7 @@ exports.getInt = getInt;
exports.one = one;
exports.makeString = makeString;
exports.uuidv4 = uuidv4;
exports.shffle = shffle;
exports.shuffle = shuffle;
exports.VERSIONINFO = "Random Module (random.js) version 0.2";
exports.global = global;