in reply to Re^2: inclusive rand
in thread inclusive rand

Math::Random::Secure's irand function supports integer between x and y inclusive. Ah yes, that will not work for 0 and 1.