Warning of conversion using srand

后端 未结 0 1001
一向
一向 2021-02-13 18:24

I have int r_number = 0; as a global variable.

In the code below:

        srand(time(0));
        r_number = rand() % 1000 + 701;
相关标签:
回答
  • 消灭零回复
提交回复
热议问题