int a = 1; int b = 4; float x = a / (float)b;
/*aleatorio float entre 0 e a*/ float x = (float)rand()/(float)(RAND_MAX/a);