- mt_rand: documentation ( source)
- rand: documentation ( source)
- sprintf: documentation ( source)
<?php
$stnum = 0;
while ($stnum <= 125){
$stize = rand(0,5);
$xl = rand(0,800);
$yl = rand(0,600);
$r = mt_rand(0,255);
$g = mt_rand(0,255);
$b = mt_rand(0,255);
echo sprintf(
"%3d|%3d|%3d|%3d|%3d|%3d|%3d\n",
$stnum,
$stize,
$xl,
$yl,
$r,
$g,
$b
);
$stnum += 1;
}