[][src]Module nannou::rand

Items related to randomness and random number generators. Also provides some high-level helper functions including random_f32(), random_f64() and random_range(min, max).

Re-exports

pub use rand;

Modules

distributions

Generating random samples from probability distributions.

prelude

Convenience re-export of common members

prngDeprecated

Pseudo-random number generators.

rngs

Random number generators and adapters for common usage:

seq

Functions for randomly accessing and sampling sequences.

Structs

EntropyRngDeprecated
Error

Error type of random number generators

ReseedingRng
StdRngDeprecated
ThreadRngDeprecated

Enums

ErrorKind

Error kind which can be matched over.

Traits

AsByteSliceMut

Trait for casting types to byte slices

Functions

random_f32

A wrapper function around the random function that avoids the need for specifying a type in the case that it cannot be inferred. The primary purpose for this is to simplify the random API for new rust users.

random_f64

A wrapper function around the random function that avoids the need for specifying a type in the case that it cannot be inferred. The primary purpose for this is to simplify the random API for new rust users.

random_range

A function for generating a random value within the given range.