MCPcopy Create free account
hub / github.com/effect-app/libs / randomBetween

Method randomBetween

repos/effect/packages/effect/src/Crypto.ts:124–124  ·  view source on GitHub ↗

* Generates a cryptographically secure random number between `min` * (inclusive) and `max` (exclusive).

(min: number, max: number)

Source from the content-addressed store, hash-verified

122 * (inclusive) and `max` (exclusive).
123 */
124 randomBetween(min: number, max: number): Effect.Effect<number>
125
126 /**
127 * Generates a cryptographically secure random integer between `min` and `max`.

Callers 1

Crypto.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected