Returns the next random #gdouble from rand_
equally distributed over
the range [0..1).
Returns the next random #gdouble from rand_
equally distributed over
the range [begin
..end)
.
lower closed bound of the interval
upper open bound of the interval
Frees the memory allocated for the #GRand.
Returns the next random #guint32 from rand_
equally distributed over
the range [0..2^32-1].
Returns the next random #gint32 from rand_
equally distributed over
the range [begin
..end-1
].
lower closed bound of the interval
upper open bound of the interval
Sets the seed for the random number generator #GRand to seed
.
a value to reinitialize the random number generator
Initializes the random number generator by an array of longs. Array can be of arbitrary size, though only the first 624 values are taken. This function is useful if you have many low entropy seeds, or if you require more then 32 bits of actual entropy for your application.
array to initialize with
length of array
The GRand struct is an opaque data structure. It should only be accessed through the g_rand_* functions.