mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +00:00
Update rand.js
This commit is contained in:
parent
3439e70eb1
commit
7e6e4ef513
|
@ -59,12 +59,17 @@ function shuffle(arr) {
|
|||
});
|
||||
}
|
||||
|
||||
function rotate(arr, i) {
|
||||
return arr[i % arr.length];
|
||||
};
|
||||
|
||||
exports.randomize = randomize;
|
||||
exports.getInt = getInt;
|
||||
exports.one = one;
|
||||
exports.makeString = makeString;
|
||||
exports.uuidv4 = uuidv4;
|
||||
exports.shuffle = shuffle;
|
||||
exports.rotate = rotate;
|
||||
|
||||
exports.VERSIONINFO = "Random Module (random.js) version 0.2";
|
||||
exports.global = global;
|
||||
|
|
Loading…
Reference in New Issue
Block a user