Skip to main content

int

Function int 

Source
pub fn int(min: i64, max: i64) -> i64
Expand description

Random integer in min..=max.

Examples found in repository?
examples/bell_catcher.rs (line 169)
168    fn drop_bell(&mut self) {
169        self.bell_lane = random::int(-LANES as i64, LANES as i64) as i32;
170        self.left = self.fall;
171        self.next_ring = 0.0;
172    }