Help for this page

Select Code to Download


  1. or download this
    my @ranges = ([a..z]) x 3, ([A..Z]) x 3, ([0..9]) x 3;
    my $password;
    ...
      $range = splice @ranges, rand @ranges, 1; # random pick
      $password .= $range->[rand @$range]; # random pick from the range
    }