in reply to Re: How much random is rand()?
in thread How much random is rand()?
$rand = int(rand(32));That'll never return 32.
rand says:
Returns a random fractional number greater than or equal to 0 and less than the value of EXPR.For random integers between 0 and 32 use int rand 33
BUT, as others have suggested, shuffle is the way to go
|
|---|