📜  c 获取随机浮点数 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:36.834000             🧑  作者: Mango

代码示例1
//random float between 0 and a
float x = (float)rand()/(float)(RAND_MAX/a);