Math::Random::Secure's irand function supports integer between x and y inclusive. Ah yes, that will not work for 0 and 1.
In reply to Re^3: inclusive rand
by marioroy
in thread inclusive rand
by msh210
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |