This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1use rand::{ 2 Rng, 3 distr::{Distribution, StandardUniform, Uniform}, 4}; 5 6use crate::Angle; 7 8impl Distribution<Angle> for StandardUniform { 9 /// Generate a random angle in degrees 10 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Angle { 11 Angle(Uniform::new(0.0, 360.0).unwrap().sample(rng)) 12 } 13}