Struct gpu_rand::DefaultRand [−][src]
#[repr(transparent)]pub struct DefaultRand { /* fields omitted */ }Expand description
Default random generator which is good for most applications.
This currently uses Xoroshiro128StarStar, but that may be changed in the future (with a major version bump).
Implementations
This is supported on non-target_os="cuda" only.
This is supported on non-
target_os="cuda" only.Initializes many states such that each state is offset in the main sequence by at least
2**64 elements (based on the current default generator). Such that every state is independent
from the others as long as no state requests more than 2**64 random numbers.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
type Seed = <Xoroshiro128StarStar as SeedableRng>::Seed
type Seed = <Xoroshiro128StarStar as SeedableRng>::Seed
Seed type, which is restricted to types mutably-dereferencable as u8
arrays (we recommend [u8; N] for some N). Read more
Create a new PRNG using a u64 seed. Read more
Auto Trait Implementations
impl RefUnwindSafe for DefaultRand
impl Send for DefaultRand
impl Sync for DefaultRand
impl Unpin for DefaultRand
impl UnwindSafe for DefaultRand
Blanket Implementations
Mutably borrows from an owned value. Read more