in reply to getting random number 8 times never the same

if your list is always a continuous range, as per the example, then a non-list solution would suffice.
for example the famous one liner
perl -le '$n=10; $min=5; $max=15; $, = " "; print map { int(rand($max- +$min))+$min } 1..$n'
comes to mind
the hardest line to type correctly is: stty erase ^H

Replies are listed 'Best First'.
Re^2: getting random number 8 times never the same
by Sandy (Curate) on Nov 01, 2010 at 18:27 UTC
    These random numbers would not necessarily be unique
    > perl -le "$n=10;$min=5;$max=15;$,=qq( );print map {int(rand($max-$mi +n)+$min)} 1..$n" 9 9 12 10 11 12 9 5 10 9