added doc / Update robot.rs
This commit is contained in:
		
							parent
							
								
									9b99bf25fd
								
							
						
					
					
						commit
						e2de2af94b
					
				@ -56,6 +56,7 @@ pub enum Orientation {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl Distribution<Orientation> for Standard {
 | 
			
		||||
    /// Generating random orientation.
 | 
			
		||||
    fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Orientation {
 | 
			
		||||
        match rng.gen_range(0, 3) {
 | 
			
		||||
            0 => Orientation::N,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user