GLib.Random – glib-2.0 Reference Manual
Random
Description:
public
namespace
Random
Namespace:
GLib.Random
Package:
glib-2.0
Content:
Methods:
public
bool
boolean
()
public
double
double_range
(
double
begin,
double
end)
Returns a random
double
equally distributed over the range [
begin
.
public
int32
int_range
(
int32
begin,
int32
end)
Returns a random
int32
equally distributed over the range [
begin
.
public
double
next_double
()
Returns a random
double
equally distributed over the range [0.
public
uint32
next_int
()
Return a random
uint32
equally distributed over the range [0.
public
void
set_seed
(
uint32
seed)
Sets the seed for the global random number generator, which is used by the g_random_* functions, to
seed
.
2022 vala-language.org