3 * written by Holmes Futrell
12 Produces a random int x, min <= x <= max
13 following a uniform distribution
16 randomInt(int min, int max)
18 return min + rand() % (max - min + 1);
22 Produces a random float x, min <= x <= max
23 following a uniform distribution
26 randomFloat(float min, float max)
28 return rand() / (float) RAND_MAX *(max - min) + min;
32 fatalError(const char *string)
34 printf("%s: %s\n", string, SDL_GetError());