Struct quickcheck::StdGen[][src]

pub struct StdGen<R> { /* fields omitted */ }

StdGen is the default implementation of Gen.

Values of type StdGen can be created with the gen function in this crate.

Methods

impl<R: RngCore> StdGen<R>
[src]

Returns a StdGen with the given configuration using any random number generator.

The size parameter controls the size of random values generated. For example, it specifies the maximum length of a randomly generated vector and also will specify the maximum magnitude of a randomly generated number.

Trait Implementations

impl<R: RngCore> RngCore for StdGen<R>
[src]

Return the next random u32. Read more

Return the next random u64. Read more

Fill dest with random data. Read more

Fill dest entirely with random data. Read more

impl<R: RngCore> Gen for StdGen<R>
[src]

Auto Trait Implementations

impl<R> Send for StdGen<R> where
    R: Send

impl<R> Sync for StdGen<R> where
    R: Sync