| 171 | } |
| 172 | |
| 173 | float frand_uniform(struct random_uniform_distribution * rnd) { |
| 174 | return rnd->rd(rnd->gen); |
| 175 | } |
| 176 | |
| 177 | int clamp(const int v, const int min, const int max) { |
| 178 | return ((v < min) ? (min) : (v > max) ? (max) : v); |
no outgoing calls
no test coverage detected