MCPcopy Create free account
hub / github.com/Effect-TS/effect / nextIntUnsafe

Function nextIntUnsafe

packages/effect/src/Random.ts:512–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

510 }
511
512 function nextIntUnsafe(): number {
513 return Math.floor(nextDoubleUnsafe() * (Number.MAX_SAFE_INTEGER - Number.MIN_SAFE_INTEGER + 1)) +
514 Number.MIN_SAFE_INTEGER
515 }
516
517 /**
518 * Returns a 53-bit fraction in the range [0, 1).

Callers

nothing calls this directly

Calls 1

nextDoubleUnsafeFunction · 0.70

Tested by

no test coverage detected