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.
13 lines
470 B
13 lines
470 B
5 months ago
|
import { unsafeUniformBigIntDistribution } from './UnsafeUniformBigIntDistribution.js';
|
||
|
function uniformBigIntDistribution(from, to, rng) {
|
||
|
if (rng != null) {
|
||
|
var nextRng = rng.clone();
|
||
|
return [unsafeUniformBigIntDistribution(from, to, nextRng), nextRng];
|
||
|
}
|
||
|
return function (rng) {
|
||
|
var nextRng = rng.clone();
|
||
|
return [unsafeUniformBigIntDistribution(from, to, nextRng), nextRng];
|
||
|
};
|
||
|
}
|
||
|
export { uniformBigIntDistribution };
|