Initial commit

This commit is contained in:
jiapengyu
2026-07-27 13:37:48 +08:00
commit ecba71e2a5
39123 changed files with 5989154 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
exports = function(seed) {
var min =
arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var max =
arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
var floating =
arguments.length > 3 && arguments[3] !== undefined
? arguments[3]
: true;
return function() {
seed = (seed * 9301 + 49297) % 233280;
var rnd = seed / 233280.0;
rnd = min + rnd * (max - min);
return floating ? rnd : Math.floor(rnd);
};
};
module.exports = exports;