in reply to inclusive rand

hello msh210

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*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: inclusive rand
by msh210 (Monk) on Mar 13, 2017 at 12:41 UTC

    Thanks, but none of the pages you link to seem to discuss my question at all.

    $_="msh210";$"=$\;@_=@{[split//,uc]}[2,0];$_="@_$\1";$\=$/;++$_[0]for$...1;print lc substr crypt($_,"@_"),1,6