At 23:24 16/01/01 -0800, Erick Papadakis wrote:
>hi,
>
>in php, how can i generate a random no. but between
>two numbers? for example, i need to generate any
>integer, randomly, between 1 and 1000.
Check out the manual entry for mt_rand.
(http://www.php.net/manual/en/function.mt-rand.php) e.g. you could use
mt_rand(1, 1000) - note that would you need to use mt_srand first to
generate the seed for mt_rand.
HTH,
Angus.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]