This commit is contained in:
parent
7a9bf3199a
commit
c294e2e9ae
5702 changed files with 465039 additions and 34 deletions
12
node_modules/pure-rand/lib/esm/distribution/UniformArrayIntDistribution.js
generated
vendored
Normal file
12
node_modules/pure-rand/lib/esm/distribution/UniformArrayIntDistribution.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { unsafeUniformArrayIntDistribution } from './UnsafeUniformArrayIntDistribution.js';
|
||||
function uniformArrayIntDistribution(from, to, rng) {
|
||||
if (rng != null) {
|
||||
var nextRng = rng.clone();
|
||||
return [unsafeUniformArrayIntDistribution(from, to, nextRng), nextRng];
|
||||
}
|
||||
return function (rng) {
|
||||
var nextRng = rng.clone();
|
||||
return [unsafeUniformArrayIntDistribution(from, to, nextRng), nextRng];
|
||||
};
|
||||
}
|
||||
export { uniformArrayIntDistribution };
|
||||
Loading…
Add table
Add a link
Reference in a new issue