Trait sampling::traits::HasRng [−][src]
pub trait HasRng<Rng> where
Rng: Rng, {
fn rng(&mut self) -> &mut Rng;
fn swap_rng(&mut self, rng: &mut Rng);
}
Expand description
Required methods
Access RNG
If, for some reason, you want access to the internal random number generator: Here you go
If you need to exchange the internal rng
- swaps internal random number generator with
rng