php handahófi fjölda
// $min and $max are optional
rand($min,$max);
php handahófi fjölda
rand();
php handahófi 5 stafa tölu
$limit = 3;
echo random_int(10 ** ($limit - 1), (10 ** $limit) - 1);
php randon tölu 4 stafa
$digits = 3;
echo rand(pow(10, $digits-1), pow(10, $digits)-1);