Rand
Object Hierarchy:
Description:
[ Compact ]
[ CCode ( copy_function = "g_rand_copy" , free_function = "g_rand_free" ) ]
public class Rand
The GRand struct is an opaque data structure.
It should only be accessed through the g_rand_* functions.
Content:
Creation methods:
- public Rand ()
Creates a new random number generator initialized with a seed taken
either from `/dev/urandom` (if existing) or from the current time (as a fallback).
- public Rand.with_seed (uint32 seed)
Creates a new random number generator initialized with seed
.
- public Rand.with_seed_array (uint32[] seed, uint seed_length)
Creates a new random number generator initialized with seed
.
Methods: