in reply to Re^2: Randomly picking numbers
in thread Randomly picking numbers

...the index is implicitly converted before being used.

...and it does so via truncation:

% perl -le 'print +(0, 1)[0.999999]' 0
as opposed to rounding, and that's why it works so well in $arr[rand @arr].

the lowliest monk