Rng::from_time
pub static fn from_time() -> Rng Import
Source: use random::{Rng}; src/random.hy Creates a generator seeded from the current wall-clock and monotonic time (via coil-time).
Returns#
Rng
See also#
Rng: A seeded pseudo-random number generator.Rng::seeded: Creates a generator fromseed.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::float: Returns afloatin0.0..1.0.Rng::bytes: Returnsnpseudo-random bytes (none whenn <= 0).