UNPKG

@randomgeekdom/rollbard

Version:

Libraries and generators for fantasy/scifi worldbuilding

15 lines 591 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Randomizer_1 = require("../Services/Randomizer"); var FromListRoller = /** @class */ (function () { function FromListRoller(randomizer) { if (randomizer === void 0) { randomizer = Randomizer_1.default.Get(); } this.randomizer = randomizer; } FromListRoller.prototype.Generate = function () { return this.randomizer.GetRandomElement(this.List); }; return FromListRoller; }()); exports.default = FromListRoller; //# sourceMappingURL=FromListRoller.js.map