mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-13 21: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.randomize = randomize;
|
||||||
exports.getInt = getInt;
|
exports.getInt = getInt;
|
||||||
exports.one = one;
|
exports.one = one;
|
||||||
exports.makeString = makeString;
|
exports.makeString = makeString;
|
||||||
exports.uuidv4 = uuidv4;
|
exports.uuidv4 = uuidv4;
|
||||||
exports.shuffle = shuffle;
|
exports.shuffle = shuffle;
|
||||||
|
exports.rotate = rotate;
|
||||||
|
|
||||||
exports.VERSIONINFO = "Random Module (random.js) version 0.2";
|
exports.VERSIONINFO = "Random Module (random.js) version 0.2";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user