MCPcopy
hub / github.com/Effect-TS/effect / nextIntBetween

Function nextIntBetween

packages/effect/src/internal/defaultServices.ts:129–130  ·  view source on GitHub ↗
(min: number, max: number)

Source from the content-addressed store, hash-verified

127
128/** @internal */
129export const nextIntBetween = (min: number, max: number): Effect.Effect<number> =>
130 randomWith((random) => random.nextIntBetween(min, max))
131
132/** @internal */
133export const shuffle = <A>(elements: Iterable<A>): Effect.Effect<Chunk.Chunk<A>> =>

Callers

nothing calls this directly

Calls 2

randomWithFunction · 0.85
nextIntBetweenMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…