std.rand
Types
type RandReader = RandReader
Functions
Return a random bytes with given length.
Return a random bytes with given length.
Return a random bytes with given length.
nv
use std.rand;
rand.bytes(10);
Return a random float between from
and to
.
Return a random float between from
and to
.
Return a random float between from
and to
.
If given from
is greater than to
, will panic.
nv
use std.rand;
rand.float(0.0, 10.0); // 5.0
rand.float(0.0, 10.0); // 2.0