GLib.test_rand_int_range
function test_rand_int_range(begin: Number(gint32), end: Number(gint32)): Number(gint32) { // Gjs wrapper for g_test_rand_int_range() }
Get a reproducible random integer number out of a specified range, see GLib.test_rand_int for details on test case random numbers.
Since 2.16
- begin
the minimum value returned by this function
- end
the smallest value not to be returned by this function
- Returns
a number with begin <= number < end.