Random

Trait Random 

Source
pub trait Random {
    // Required method
    fn random(seed: &mut u64) -> Self;
}
Expand description

Trait for generating random values

Required Methods§

Source

fn random(seed: &mut u64) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Random for f64

Implements Random trait for f64

Source§

fn random(seed: &mut u64) -> Self

Source§

impl Random for i32

Implements Random trait for i32

Source§

fn random(seed: &mut u64) -> Self

Source§

impl Random for i64

Implements Random trait for i64

Source§

fn random(seed: &mut u64) -> Self

Source§

impl Random for u8

Implements Random trait for u8

Source§

fn random(seed: &mut u64) -> Self

Implementors§