MCPcopy
hub / github.com/Effect-TS/effect / number

Method number

packages/effect/src/Utils.ts:627–631  ·  view source on GitHub ↗

* Get a uniformly distributed IEEE-754 double between 0.0 and 1.0, with * 53 bits of precision (every bit of the mantissa is randomized). * * @category getters * @since 2.0.0

()

Source from the content-addressed store, hash-verified

625 * @since 2.0.0
626 */
627 number() {
628 const hi = (this._next() & 0x03ffffff) * 1.0
629 const lo = (this._next() & 0x07ffffff) * 1.0
630 return (hi * BIT_27 + lo) / BIT_53
631 }
632
633 /** @internal */
634 private _next() {

Callers 15

integerMethod · 0.95
randomNumberFunction · 0.95
Migrator.tsFile · 0.80
docTree.tsFile · 0.80
SchemaIndex.tsFile · 0.80
SchemaFilters.tsFile · 0.80
SchemaUnion.tsFile · 0.80
Hash.test.tsFile · 0.80
Config.test.tsFile · 0.80

Calls 1

_nextMethod · 0.95

Tested by

no test coverage detected