GLib.random_double

function random_double(): Number(gdouble) {
    // Gjs wrapper for g_random_double()
}
  

Returns a random #gdouble equally distributed over the range [0..1).

Returns

a random number