GLib.Random – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Random
boolean
double_range
int_range
next_double
next_int
set_seed
GLib.Random
Description:
Content:
Functions:
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
.
public
bool
boolean
()
public
uint32
next_int
()
Return a random
uint32
equally distributed over the range [0.
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
double
double_range
(
double
begin,
double
end)
Returns a random
double
equally distributed over the range [
begin
.