Struct naia_client::Random
[−]pub struct Random {}
Expand description
Container for cross-platform Random methods
Implementations
impl Random
impl Random
pub fn gen_range_f32(lower: f32, upper: f32) -> f32
pub fn gen_range_f32(lower: f32, upper: f32) -> f32
returns a random f32 value between an upper & lower bound
pub fn gen_range_u32(lower: u32, upper: u32) -> u32
pub fn gen_range_u32(lower: u32, upper: u32) -> u32
returns a random u32 value between an upper & lower bound