强制转换

来源:互联网 发布:安卓手机性能优化 编辑:程序博客网 时间:2024/04/28 20:13

(float)(rand() % 256) / 256;值为浮点数0~1

rand() % 256 / 256;为0;

原创粉丝点击