Added lot of junk laying around on harvie.cz
[mirrors/Programs.git] / php / rand.php
diff --git a/php/rand.php b/php/rand.php
new file mode 100644 (file)
index 0000000..722ad56
--- /dev/null
@@ -0,0 +1,16 @@
+#!/usr/bin/php
+<?php
+
+srand(time()+rand(0,9));
+
+while(1) echo rand(0,20)."\n";
+
+function rnd() {
+       while( ($i = (rand(0,1000000000)/1000000000)) == 1 );
+       return $i;
+}
+
+while( ($i = round(rnd()*15)) != 15) {
+       echo $i."\n";
+}
+echo $i."\n";
\ No newline at end of file
This page took 0.093905 seconds and 4 git commands to generate.