18 lines
421 B
JavaScript
18 lines
421 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = function (random) {
|
|
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
args[_key - 1] = arguments[_key];
|
|
}
|
|
|
|
var normal = random.normal.apply(random, args);
|
|
|
|
return function () {
|
|
return Math.exp(normal());
|
|
};
|
|
};
|
|
//# sourceMappingURL=log-normal.js.map
|