<?php // 生成一个随机数 // 从1到100中取得随机数 for ($index = 0; $index < 100; $index++) { $number = (rand() % 100) + 1; print("$number \n"); } ?>
<?php // 生成一个随机数 // 从1到100中取得随机数 for ($index = 0; $index < 100; $index++) { $number = (rand() % 100) + 1; print("$number \n"); } ?>
转载于:https://www.cnblogs.com/tianpan2019/p/10992785.html