Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
15
node_modules/pure-rand/lib/distribution/UniformIntDistribution.js
generated
vendored
Normal file
15
node_modules/pure-rand/lib/distribution/UniformIntDistribution.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.uniformIntDistribution = void 0;
|
||||
var UnsafeUniformIntDistribution_1 = require("./UnsafeUniformIntDistribution");
|
||||
function uniformIntDistribution(from, to, rng) {
|
||||
if (rng != null) {
|
||||
var nextRng = rng.clone();
|
||||
return [(0, UnsafeUniformIntDistribution_1.unsafeUniformIntDistribution)(from, to, nextRng), nextRng];
|
||||
}
|
||||
return function (rng) {
|
||||
var nextRng = rng.clone();
|
||||
return [(0, UnsafeUniformIntDistribution_1.unsafeUniformIntDistribution)(from, to, nextRng), nextRng];
|
||||
};
|
||||
}
|
||||
exports.uniformIntDistribution = uniformIntDistribution;
|
||||
Loading…
Add table
Add a link
Reference in a new issue