Struct radiant_rs::utils::Rng [] [src]

pub struct Rng(_);

A very simple, seedable random number generator based on sin(). It is provided to simplify experimentation with the library but not suitable for applications that require good quality random numbers.

Methods

impl Rng
[src]

[src]

Creates a new instance with given seed.

[src]

Returns a random number between 0.0 and non-inclusive 1.0

[src]

Returns a random number between min and non-inclusive max.

[src]

Returns a random item from given slice.