Struct rand::distributions::UnitCircle [−][src]
pub struct UnitCircle;
👎 Deprecated since 0.7.0:
moved to rand_distr crate
Samples uniformly from the edge of the unit circle in two dimensions.
Implemented via a method by von Neumann1.
von Neumann, J. (1951) Various Techniques Used in Connection with Random Digits. NBS Appl. Math. Ser., No. 12. Washington, DC: U.S. Government Printing Office, pp. 36-38. ↩
Implementations
impl UnitCircle
[src]
impl UnitCircle
[src]pub fn new() -> UnitCircle
[src]
Construct a new UnitCircle
distribution.
Trait Implementations
impl Clone for UnitCircle
[src]
impl Clone for UnitCircle
[src]fn clone(&self) -> UnitCircle
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Distribution<[f64; 2]> for UnitCircle
[src]
impl Distribution<[f64; 2]> for UnitCircle
[src]