[][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

rngs

Random number generators and adapters

seq

Sequence-related functionality

Structs

Error

Error type of random number generators

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.