how can i write such a functýon
ex:
random1(89.434, 234.3434);
and it returns a flouting point between this numbers?
Printable View
how can i write such a functýon
ex:
random1(89.434, 234.3434);
and it returns a flouting point between this numbers?
like thisQuote:
how 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;
}