Rng::float
pub fn float() -> float Import
Source: use random::{Rng}; src/random.hy Returns a float in 0.0..1.0.
Called on a Rng value as value.float(…).
Returns#
float
See also#
floatRng: A seeded pseudo-random number generator.Rng::seeded: Creates a generator fromseed.Rng::from_time: Creates a generator seeded from the current wall-clock and monotonic time (via coil-time).Rng::next_u64: Returns the next raw value from the generator, a non-negativeint.Rng::range: Returns a value inlo..hi(includinglo, excludinghi), orlowhenhi <= lo.Rng::bytes: Returnsnpseudo-random bytes (none whenn <= 0).