| 163 | } |
| 164 | |
| 165 | float frand() { |
| 166 | return (float)rand()/((float)(RAND_MAX) + 1.0f); |
| 167 | } |
| 168 | |
| 169 | float frand_normal(struct random_normal_distribution * rnd) { |
| 170 | return fclamp(rnd->rd(rnd->gen), rnd->min, rnd->max); |
no outgoing calls
no test coverage detected