[PHP] Re: rand()

2002-09-03 Thread Erwin
By the way, rand() will only return 0 if I call it with it's arguments. Without arguments it will return a random value. Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: rand(0,1) does seem to get more often 1

2002-05-07 Thread J Smith
Running the code with such a small number of trials will likely cause skewed results one way or the other. I ran this code and consistently got around the 50-50 split you'd expect: J Andy wrote: > Hi there, > > I am wondering if it is possible that this function tends to be more often >