Random module

random_get_zero_to_one_new

procedure · 2 overloadsSource

A float64 in [0, 1) from all 64 random bits, rounding down to the largest value below 1 when the division would round up to 1. The values are not evenly spaced: the float64 grid is finer near 0 than near 1, so prefer random_get_zero_to_one_open_new when an even grid matters.

random_get_zero_to_one_new :: (state: *Random_State) -> float64

Parameters

state: *Random_State

Returns

float64
random_get_zero_to_one_new :: () -> float64

Returns

float64

See also