Trait RngExt

Source
pub trait RngExt: Rng {
    // Provided method
    fn gen_circle<T: Float>(&mut self, center: vec2<T>, radius: T) -> vec2<T> { ... }
}
Expand description

Extends Rng with more methods

Provided Methods§

Source

fn gen_circle<T: Float>(&mut self, center: vec2<T>, radius: T) -> vec2<T>

Generate a uniformly distributed random point inside a circle

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Rng + ?Sized> RngExt for T