72 lines
2.5 KiB
JavaScript
72 lines
2.5 KiB
JavaScript
"use strict";
|
|
|
|
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 _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
/**
|
|
* @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
|