docs
[mirrors/Programs.git] / php / rand.php
CommitLineData
8de51304
H
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.227857 seconds and 4 git commands to generate.