Function cgl_rs::utils::random_int

source ·
pub fn random_int(min_value: i32, max_value: i32) -> i32
Expand description

Generates a random integer within the given range.

Arguments

  • min_value - An i32 representing the minimum value of the range.
  • max_value - An i32 representing the maximum value of the range.

Returns

An i32 representing the generated random number within the given range.

Example

let random_number = cgl_rs::utils::random_int(0, 10);