GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Fixed DOS encodings using: iconv -f CP852
[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.375745 seconds
and
4
git commands to generate.