In the Perl Cook Book it states In chapter 2.7. Generating Random Numbers. "The rand function returns a fractional number, from (and including) 0 up to (but not including) its argument. We give it an argument of 51 to get a number that can be 0 or more, but never 51 or more." I take it that i meens if there are 25 elements to the ararry then the posible numbers are from 0 to 24.999999... the remainder get cut off.
I see your right because the elements are 0..24 thanks Japhy. I will make the correction.