srand与rand

来源:互联网 发布:淘宝没收货却写已签收 编辑:程序博客网 时间:2024/05/16 21:36

C语言中默认使用srand(1)初始化rand()函数

0 <= rand() <= 0x7fff

0 0
原创粉丝点击