Produces a random float x, min <= x <= max following a uniform distribution */
| 23 | following a uniform distribution |
| 24 | */ |
| 25 | float |
| 26 | randomFloat(float min, float max) |
| 27 | { |
| 28 | return rand() / (float) RAND_MAX *(max - min) + min; |
| 29 | } |
| 30 | |
| 31 | void |
| 32 | fatalError(const char *string) |
no test coverage detected