PHP loop increment randomly?

前端 未结 3 481
难免孤独
难免孤独 2021-01-28 11:43

We all know the basic

$i = 1;

while ($i<100){
    echo $i;
    $i++
}

Question: How do I increment $i by a random number between 1 and 5 e

3条回答
提交回复
热议问题