docs
[mirrors/Programs.git] / php / rand.php
1 #!/usr/bin/php
2 <?php
3
4 srand(time()+rand(0,9));
5
6 while(1) echo rand(0,20)."\n";
7
8 function rnd() {
9 while( ($i = (rand(0,1000000000)/1000000000)) == 1 );
10 return $i;
11 }
12
13 while( ($i = round(rnd()*15)) != 15) {
14 echo $i."\n";
15 }
16 echo $i."\n";
This page took 0.269491 seconds and 4 git commands to generate.