You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
676 B
16 lines
676 B
4 months ago
|
"use strict";
|
||
|
exports.__esModule = true;
|
||
|
exports.uniformArrayIntDistribution = void 0;
|
||
|
var UnsafeUniformArrayIntDistribution_1 = require("./UnsafeUniformArrayIntDistribution");
|
||
|
function uniformArrayIntDistribution(from, to, rng) {
|
||
|
if (rng != null) {
|
||
|
var nextRng = rng.clone();
|
||
|
return [(0, UnsafeUniformArrayIntDistribution_1.unsafeUniformArrayIntDistribution)(from, to, nextRng), nextRng];
|
||
|
}
|
||
|
return function (rng) {
|
||
|
var nextRng = rng.clone();
|
||
|
return [(0, UnsafeUniformArrayIntDistribution_1.unsafeUniformArrayIntDistribution)(from, to, nextRng), nextRng];
|
||
|
};
|
||
|
}
|
||
|
exports.uniformArrayIntDistribution = uniformArrayIntDistribution;
|