#!/usr/bin/env perl
use strict;
my @test = (0,1,2,3,4,5);
my $i = 6;
while($i > 0){
my $offset = int(rand(scalar(@test)+1)) - 1;
print $test[$offset]."\n";
splice(@test,$offset,1);
$i--;
}
Saturday, November 24, 2007
Subscribe to:
Posts (Atom)