$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
In reply to Re^2: How much random is rand()?
by FunkyMonk
in thread How much random is rand()?
by gmoque
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |