rand_f doesn't take any argument and it returns a random number between 0.010000 to 0.990000
Syntax:
rand_f();
Example::
#include<cquery.h> void main(void) { int i; randomize(); for(i = 0 ; i < 10 ; i++) { printf("%f\n",rand_f()); } getch(); } /* Possible Output: * 0.07 * 0.65 * 0.02 * 0.98 * 0.76 * 0.05 * 0.07 * 0.23 * 0.33 * 0.01 */
No comments:
Post a Comment