EdgeAIG's picture
download
raw
578 Bytes
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
//#region src/distribution/uniformFloat32.ts
const scale = 5.960464477539063e-8;
const mask = 16777215;
/**
* Uniformly generate random 32-bit floating point values between 0 (included) and 1 (excluded)
*
* @remarks Generated values are multiples of 2**-24, providing 24 bits of randomness.
*
* @param rng - Instance of RandomGenerator to extract random values from
*
* @public
*/
function uniformFloat32(rng) {
return (rng.next() & mask) * scale;
}
//#endregion
exports.uniformFloat32 = uniformFloat32;

Xet Storage Details

Size:
578 Bytes
·
Xet hash:
f23edac5d4df825d877c20da0bef8da3d4ade9caa28ab797b59dd7bdc0d29690

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.