Skip to main content

Module rand

Module rand 

Source
Expand description

Cross platform random generator.

Structs§

RandGenerator
SliceChooseIter

Traits§

ChooseRandom
RandomRange

Functions§

gen_range
rand
Returns a pseudo-random number in the range of 0 to u32::MAX.
srand
Seeds the pseudo-random number generator used by rand() with the value seed.