Since rand takes an expression as its argument and there are 101 elements in @values your code is equivalent to
my $i = int( rand(101) );In reply to Re^2: biased random number picking
by Lotus1
in thread biased random number picking
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |