use core::num::NonZeroU16;
#[derive(Default)]
#[non_exhaustive]
pub struct RandomNumberGenerator;
impl super::NumberGenerator for RandomNumberGenerator
{
#[inline]
fn rand_upto(
&mut self,
exclusive_end: NonZeroU16,
) -> u16
{
fastrand::u16(0 .. exclusive_end.get())
}
}