|
GRASS 8 Programmer's Manual
8.5.0dev(2025)-9d806b45d8
|

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.
| [in] | seed | 32-bit integer used to seed the PRNG |
Definition at line 25 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 35 of file rand1.c.
References G_srand48_auto().