RE: [PHP] problems with mt_rand()

2002-01-31 Thread Matthew Walker
To: PHP Subject: [PHP] problems with mt_rand() I need to generate a random number (range is not crucial) and I have been trying to use mt_rand(). However, I am finding that is generates the same value EVERY time. This is true whether I supple a range or not. For example, the follow line of code

Re: [PHP] problems with mt_rand()

2002-01-31 Thread Christopher William Wesley
On Thu, 31 Jan 2002, Benjamin deRuyter wrote: > I need to generate a random number (range is not crucial) and I have been > trying to use mt_rand(). However, I am finding that is generates the same > value EVERY time. This is true whether I supple a range or not. For > example, the follow line

[PHP] problems with mt_rand()

2002-01-31 Thread Benjamin deRuyter
I need to generate a random number (range is not crucial) and I have been trying to use mt_rand(). However, I am finding that is generates the same value EVERY time. This is true whether I supple a range or not. For example, the follow line of code generated 13 EVERY time... $result = mt_rand(