GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-847944e18e
|
Go to the source code of this file.
Functions | |
float | G_math_rand (void) |
void | G_math_srand (int seed) |
Seed the pseudo-random number generator. More... | |
int | G_math_srand_auto (void) |
Seed the pseudo-random number generator from the time and PID. More... | |
float G_math_rand | ( | void | ) |
void G_math_srand | ( | int | seed | ) |
Seed the pseudo-random number generator.
seedval | 32-bit integer used to seed the PRNG |
Definition at line 27 of file rand1.c.
References G_srand48().
int G_math_srand_auto | ( | void | ) |
Seed the pseudo-random number generator from the time and PID.
Definition at line 38 of file rand1.c.
References G_srand48_auto().