Good enough approximation 

my $i = int( rand(100) );
my $i = int( rand(20) + rand(20) + rand(20) + rand(20) + rand(20) );