Line data Source code
1 : import { Engine } from "../types.ts"; 2 1 : import { SMALLEST_UNSAFE_INTEGER } from "../utils/constants.ts"; 3 1 : import { uint53 } from "./uint53.ts"; 4 : 5 : /** 6 : * Returns a floating-point value within [0.0, 1.0) 7 : */ 8 0 : export function realZeroToOneExclusive(engine: Engine): number { 9 0 : return uint53(engine) / SMALLEST_UNSAFE_INTEGER; 10 0 : }