beside rand and srand Math::Random::MTwist can be of your interest.
Also Re: rand() function on Windows systems can be an interesting read.
PS also note that int(rand(2)) return an integer from 0 to 1
PPS ok i misunderstood your question; marioroy offered a valid option
L*
In reply to Re: inclusive rand
by Discipulus
in thread inclusive rand
by msh210
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |