Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Number too big to fit in integer

by BillKSmith (Monsignor)
on Dec 26, 2022 at 15:53 UTC ( [id://11149091] : note . print w/replies, xml ) Need Help??

in reply to Number too big to fit in integer

The maximum possible value for $hi is set by the way that perl stores integers. The actual value depends on your system. (Ref to hv).

The maximum possible value of $range is limited by your random number generator (Ref NERDVANA).

You should validate both.