Function glib::random_int_range

source ·
pub fn random_int_range(begin: i32, end: i32) -> i32
Expand description

Returns a random gint32 equally distributed over the range [begin..end-1].

begin

lower closed bound of the interval

end

upper open bound of the interval

Returns

a random number