float x = (float)rand()/(float)(RAND_MAX/a);. To understand how this works consider the following. N = a random value in [0..RAND_MAX] ...
確定! 回上一頁