[][src]Struct msws::Rand

pub struct Rand { /* fields omitted */ }

This struct holds the state necessary to generate random numbers. You should continue to call rand() on the same instance of the struct.

Methods

impl Rand[src]

pub fn new(s: u64) -> Result<Self, &'static str>[src]

Generates a new Rand struct from an odd seed.

pub fn rand(&mut self) -> u32[src]

Returns a random integer.

Auto Trait Implementations

impl Unpin for Rand

impl Send for Rand

impl Sync for Rand

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]