<?php
    // 生成一个随机数
    //  从1到100中取得随机数
    for ($index = 0; $index < 100; $index++) {
        $number = (rand() % 100) + 1;
        print("$number   \n");
    }
?>

033-PHP取1-100的随机数

 

相关文章:

  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案