in reply to calling subroutines

If you add 5 random numbers together, that is still just a random number. Sounds like homework.

my $iRand = int(rand($range)); #???
Update: If you add several random numbers together, there is the possibility of an overflow of precision - think about that.