C Obtenez un flot aléatoire

//random float between 0 and a
float x = (float)rand()/(float)(RAND_MAX/a);
Excited Elk