Module af_core::random[][src]

Random number generation.

Structs

Rng

A random number generator.

Traits

Random

A trait for types that can be created randomly.

Functions

chance

Returns true with a given probability.

fill_bytes

Fills a slice with random bytes.

random

Generates a random value.

range

Generates a random number within a range.

ratio

Returns true with a probability expressed by the ratio between two given numbers.

shuffle

Randomly shuffles a slice in place.