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

Method randomIntBetween

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

* Generates a cryptographically secure random integer between `min` and `max`. * * **Details** * * The lower bound is rounded up with `Math.ceil` and the upper bound is * rounded down with `Math.floor`. By default the range is inclusive; set * `options.halfOpen: true` to exclude th

(min: number, max: number, options?: {
    readonly halfOpen?: boolean | undefined
  })

Source from the content-addressed store, hash-verified

133 * `options.halfOpen: true` to exclude the upper bound.
134 */
135 randomIntBetween(min: number, max: number, options?: {
136 readonly halfOpen?: boolean | undefined
137 }): Effect.Effect<number>
138

Callers 1

Crypto.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected