10 VisRandomContext *visual_random_context_new (VisRandomSeed seed)
15 void visual_random_context_free (VisRandomContext *rcontext)
20 void visual_random_context_set_seed (VisRandomContext *rcontext, VisRandomSeed seed)
22 visual_return_if_fail (rcontext !=
nullptr);
27 uint32_t visual_random_context_int (VisRandomContext *rcontext)
29 visual_return_val_if_fail (rcontext !=
nullptr, 0);
34 uint32_t visual_random_context_int_range (VisRandomContext *rcontext,
unsigned int min,
unsigned int max)
36 visual_return_val_if_fail (rcontext !=
nullptr, 0);
38 return rcontext->
get_int (min, max);
41 double visual_random_context_double (VisRandomContext *rcontext)
43 visual_return_val_if_fail (rcontext !=
nullptr, 0.0);
48 float visual_random_context_float (VisRandomContext *rcontext)
50 visual_return_val_if_fail (rcontext !=
nullptr, 0.0);