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 ::::..

nakome's Website

2 2013-01-22 19:44:13

Re: Randon image

https://github.com/Monstra/monstra-cms/ … t.php#L166

$random  =  Text::random('nozero', $xml->count());
Monstra Loves You! Give some love back!

3 2013-01-22 20:06:14

Re: Randon image

thanks

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Randon image

But generate random number but i like to generate from 1 to 10 for example.

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website