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