Help for this page

Select Code to Download


  1. or download this
    my %idx = ();
    my $val = 0;
    ...
        $val = int(rand($ulmt-1)+1);   # map range to (1..ulmt)
        $idx{$val} ||= 1 && push @num, $val;
    }