产生0-3的随机数

2020-06-28  本文已影响0人  寒雨晚风

  srand((unsigned)time(0)); //不加这句每次产生的随机数不变

    inti =rand() %4;

上一篇 下一篇

猜你喜欢

热点阅读