GLib.random_int_range
function random_int_range(begin: Number(gint32), end: Number(gint32)): Number(gint32) { // Gjs wrapper for g_random_int_range() }
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