in reply to inclusive rand
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*
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: inclusive rand
by msh210 (Monk) on Mar 13, 2017 at 12:41 UTC |