|
<?php
for ( $i = 1; $i < 255; $i++ )
$shades[$i] = 0;
srand(time());
for ( $i = 1; $i <= 5; $i++ ) {
printf(" <tr>\n");
for ( $j = 1 ; $j <= 10 ; $j++ ) {
$s = rand(1, 254);
while ( $shades[$s] > 0 )
$s = rand(1, 254);
$shades[$s] = 1;
printf(" <td bgcolor=\"#%02x%02x%02x\"> </td>\n", $s, $s, $s);
}
printf(" </tr>\n");
}
?>
|
|