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