random float [0, 1]
| 158 | |
| 159 | // random float [0, 1] |
| 160 | inline float frand() { return rand() / (float)RAND_MAX; } |
| 161 | |
| 162 | // signed random float [-1, 1] |
| 163 | inline float sfrand() { return frand() * 2.0f - 1.0f; } |
no outgoing calls
no test coverage detected