Answers for "random float c$"

C
1

c get random float

//random float between 0 and a
float x = (float)rand()/(float)(RAND_MAX/a);
Posted by: Guest on May-31-2021

Code answers related to "C"

Browse Popular Code Answers by Language