How to generate random float number in C ... Try: float x = (float)rand()/(float)(RAND_MAX/a);. To understand how this works consider the following. N = a random ...
確定! 回上一頁