aiparking_api/node_modules/random/dist/distributions/log-normal.js
2020-02-02 15:24:30 +07:00

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