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§
Sourcefn gen_circle<T: Float>(&mut self, center: vec2<T>, radius: T) -> vec2<T>
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.