GLib.test_rand_double_range
function test_rand_double_range(range_start: Number(gdouble), range_end: Number(gdouble)): Number(gdouble) { // Gjs wrapper for g_test_rand_double_range() }
Get a reproducible random floating pointer number out of a specified range, see GLib.test_rand_int for details on test case random numbers.
Since 2.16
- range_start
the minimum value returned by this function
- range_end
the minimum value not returned by this function
- Returns
a number with range_start <= number < range_end.