effect
Version:
The missing standard library for TypeScript, for writing production-grade software.
73 lines (72 loc) • 2.69 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.shuffle = exports.nextRange = exports.nextIntBetween = exports.nextInt = exports.nextBoolean = exports.next = exports.live = exports.Tag = exports.TRandomTypeId = void 0;
var internal = _interopRequireWildcard(require("./internal/stm/tRandom.js"));
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
/**
* @since 2.0.0
* @category symbols
*/
const TRandomTypeId = exports.TRandomTypeId = internal.TRandomTypeId;
/**
* The service tag used to access `TRandom` in the environment of an effect.
*
* @since 2.0.0
* @category context
*/
const Tag = exports.Tag = internal.Tag;
/**
* The "live" `TRandom` service wrapped into a `Layer`.
*
* @since 2.0.0
* @category context
*/
const live = exports.live = internal.live;
/**
* Returns the next number from the pseudo-random number generator.
*
* @since 2.0.0
* @category random
*/
const next = exports.next = internal.next;
/**
* Returns the next boolean value from the pseudo-random number generator.
*
* @since 2.0.0
* @category random
*/
const nextBoolean = exports.nextBoolean = internal.nextBoolean;
/**
* Returns the next integer from the pseudo-random number generator.
*
* @since 2.0.0
* @category random
*/
const nextInt = exports.nextInt = internal.nextInt;
/**
* Returns the next integer in the specified range from the pseudo-random number
* generator.
*
* @since 2.0.0
* @category random
*/
const nextIntBetween = exports.nextIntBetween = internal.nextIntBetween;
/**
* Returns the next number in the specified range from the pseudo-random number
* generator.
*
* @since 2.0.0
* @category random
*/
const nextRange = exports.nextRange = internal.nextRange;
/**
* Uses the pseudo-random number generator to shuffle the specified iterable.
*
* @since 2.0.0
* @category random
*/
const shuffle = exports.shuffle = internal.shuffle;
//# sourceMappingURL=TRandom.js.map