Forum Moderators: coopster
$min = 0;
$max = 10;
$no = rand($min, $max);
then from SQL take page address that has $no id:
SELECT page FROM addresses WHERE id > $no ORDER BY id;
this way if there are some missing it will give you first that is there. You can try estimating the $max value by
SELECT MAX(id);.
then
include($page);
Have fun!