I know this is a rather simple question, but I\'m just not too good at maths.
I know how to generate a random float between 0 and 1:
float random = ((flo
Random between 2 float :
float random_between_two_int(float min, float max) { return (min + 1) + (((float) rand()) / (float) RAND_MAX) * (max - (min + 1)); }
Random between 2 int :
int random_between_two_int(float min, float max) { return rand() % (max - min) + min + 1; }