Topic: Randon image
Which is the best way to generate random numbers?
Like this:
$last = rand(1, $xml->count()) - 1;
Or like this:
$last = rand(1, $xml->count());
..::: Moncho Varela ::::.. ..::: @Nakome ::::.. ..::: Github ::::..
+ Werasu
You are not logged in. Please login or register.
Which is the best way to generate random numbers?
Like this:
$last = rand(1, $xml->count()) - 1;
Or like this:
$last = rand(1, $xml->count());
https://github.com/Monstra/monstra-cms/ … t.php#L166
$random = Text::random('nozero', $xml->count());thanks
But generate random number but i like to generate from 1 to 10 for example.