how can i write such a functýon
ex:
random1(89.434, 234.3434);
and it returns a flouting point between this numbers?
how can i write such a functýon
ex:
random1(89.434, 234.3434);
and it returns a flouting point between this numbers?
like thishow can i write such a functýon
ex:
random1(89.434, 234.3434);
and it returns a flouting point between this numbers?
Code:float(random)(float one,float two) { float f=(float)rand()/RAND_MAX*(two-one); return f; }