Particles when dashing

This commit is contained in:
2024-03-26 13:54:32 +08:00
parent dcca8a348a
commit 8db8e52819
4 changed files with 37 additions and 14 deletions

View File

@ -7,3 +7,8 @@ double rand_Double01() {
// Very bad implementation.
return ((double)rand()) / (double)RAND_MAX;
}
double rand_DoubleRange(double min, double max) {
return min + rand_Double01() * (max - min);
}

View File

@ -7,6 +7,8 @@ extern "C" {
// returns a double in the [0,1) range.
double rand_Double01();
double rand_DoubleRange(double min, double max);
#ifdef __cplusplus
}
#endif