Struct dashu_int::rand::UniformIBig
source · pub struct UniformIBig { /* private fields */ }
Expand description
The back-end implementing UniformSampler for IBig.
See the module (rand) level documentation for examples.
Trait Implementations§
source§impl UniformSampler for UniformIBig
impl UniformSampler for UniformIBig
source§fn new<B1, B2>(low: B1, high: B2) -> UniformIBigwhere
B1: SampleBorrow<IBig>,
B2: SampleBorrow<IBig>,
fn new<B1, B2>(low: B1, high: B2) -> UniformIBigwhere
B1: SampleBorrow<IBig>,
B2: SampleBorrow<IBig>,
Construct self, with inclusive lower bound and exclusive upper bound
[low, high)
. Read moresource§fn new_inclusive<B1, B2>(low: B1, high: B2) -> UniformIBigwhere
B1: SampleBorrow<IBig>,
B2: SampleBorrow<IBig>,
fn new_inclusive<B1, B2>(low: B1, high: B2) -> UniformIBigwhere
B1: SampleBorrow<IBig>,
B2: SampleBorrow<IBig>,
Construct self, with inclusive bounds
[low, high]
. Read moresource§fn sample_single<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::Xwhere
R: Rng + ?Sized,
B1: SampleBorrow<Self::X>,
B2: SampleBorrow<Self::X>,
fn sample_single<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::Xwhere
R: Rng + ?Sized,
B1: SampleBorrow<Self::X>,
B2: SampleBorrow<Self::X>,
Sample a single value uniformly from a range with inclusive lower bound
and exclusive upper bound
[low, high)
. Read moresource§fn sample_single_inclusive<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::Xwhere
R: Rng + ?Sized,
B1: SampleBorrow<Self::X>,
B2: SampleBorrow<Self::X>,
fn sample_single_inclusive<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::Xwhere
R: Rng + ?Sized,
B1: SampleBorrow<Self::X>,
B2: SampleBorrow<Self::X>,
Sample a single value uniformly from a range with inclusive lower bound
and inclusive upper bound
[low, high]
. Read more