UNPKG

veffect

Version:

powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha

65 lines 1.67 kB
import * as defaultServices from "./internal/defaultServices.js"; import * as internal from "./internal/random.js"; /** * @since 2.0.0 * @category symbols */ export const RandomTypeId = internal.RandomTypeId; /** * Returns the next numeric value from the pseudo-random number generator. * * @since 2.0.0 * @category constructors */ export const next = defaultServices.next; /** * Returns the next integer value from the pseudo-random number generator. * * @since 2.0.0 * @category constructors */ export const nextInt = defaultServices.nextInt; /** * Returns the next boolean value from the pseudo-random number generator. * * @since 2.0.0 * @category constructors */ export const nextBoolean = defaultServices.nextBoolean; /** * Returns the next numeric value in the specified range from the * pseudo-random number generator. * * @since 2.0.0 * @category constructors */ export const nextRange = defaultServices.nextRange; /** * Returns the next integer value in the specified range from the * pseudo-random number generator. * * @since 2.0.0 * @category constructors */ export const nextIntBetween = defaultServices.nextIntBetween; /** * Uses the pseudo-random number generator to shuffle the specified iterable. * * @since 2.0.0 * @category constructors */ export const shuffle = defaultServices.shuffle; /** * Retreives the `Random` service from the context and uses it to run the * specified workflow. * * @since 2.0.0 * @category constructors */ export const randomWith = defaultServices.randomWith; /** * @since 2.0.0 * @category context */ export const Random = internal.randomTag; //# sourceMappingURL=Random.js.map