Note that this will result in a number >= $low but < high.# other code here $rand = int(rand($high - $low) + $low); # other code here
In reply to Re: generating random numbers within a range
by moot
in thread generating random numbers within a range
by tcf03
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |