Skip to content

@lelantos-org/sdk / core / randomFloat01

Function: randomFloat01() โ€‹

ts
function randomFloat01(): number;

Defined in: @lelantos-org/sdk/dist/core/random.d.ts:23

Uniform float in [0, 1) with 56 bits of entropy.

For a random index use randomBelow instead: scaling this by n gives unequal buckets unless n is a power of two.

Returns โ€‹

number

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub