Trying to find the modulo problem

This commit is contained in:
2023-04-05 21:44:55 -07:00
parent 6990178be3
commit b5707ed888
3 changed files with 9 additions and 4 deletions

View File

@ -44,7 +44,8 @@ namespace Dawn {
}
static inline float_t randRange(float_t min, float_t max) {
return mathMod(randomGenerate<float_t>(), (max - min)) + min;
float_t n = randomGenerate<float_t>();
return mathMod(n, (max - min)) + min;
}
static inline glm::vec2 randRange(glm::vec2 min, glm::vec2 max) {