bms_rs::parse::rng

Trait Rng

Source
pub trait Rng {
    // Required method
    fn gen(&mut self, range: RangeInclusive<u32>) -> u32;
}
Expand description

A random generator for parsing BMS.

Required Methods§

Source

fn gen(&mut self, range: RangeInclusive<u32>) -> u32

Generates a random integer within the range. Returning the number outside the range will result weird.

Implementors§

Source§

impl<const N: usize> Rng for RngMock<N>