Re: random integer



bob@xxxxxxxxxxxxxx wrote:

For instance, if you want a number between 0 and 31999, you can't just
do rand()%32000 since 0-767 will be twice as likely.

Why ?

.