Forum Moderators: coopster
srand(floor(date('U')) / (60*60*24*7));
echo rand() % 100;
<?php
srand(floor(date('U')) / (60*60*24*7));
$num = 100;
$a = rand() % $num;
echo $a;
echo "<br>";
$b = rand() % $num;
echo $b;
echo "<br>";
$c = rand() % $num;
echo $c;
echo "<br>";
$d = rand() % $num;
echo $d;
echo "<br>";
$e = rand() % $num;
echo $e;
?>
$day_offset = 0;
$hour_offset = 0;
$minute_offset = 0;
$second_offset = 0;
srand(floor(date('U') / ((60*60*24*7) + (((60*60*24) * $day_offset) + ((60*60) * $hour_offset) + (60 * $minute_offset) + $second_offset));
echo rand() % 100;
$day_offset = 0;
$hour_offset = 0;
$minute_offset = 0;
$second_offset = 0;
srand(floor((date('U') + (60 * 60 * 24 * $day_offset) + (60 * 60 * $hour_offset) + (60 * $minute_offset) + $second_offset) / (60 * 60 * 24 * 7));
echo rand() % 100;