Help for this page

Select Code to Download


  1. or download this
    join("", @array[map {rand @array}(1..n)]);
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    $a .= join("", $types[0][ map { rand \$types[0] } ( 1 .. 4 ) ]);
    print "My selection is $a \n";
    exit;
    
  3. or download this
    my $a = join("", $types[0][ map { rand \$types[0] } ( 1 .. 4 ) ]);
    $a .= join("", $types[1][ map { rand \$types[1] } ( 1 .. 4 ) ]);
    $a .= join("", $types[2][ map { rand \$types[2] } ( 1 .. 4 ) ]);
    $a .= join("", $types[3][ map { rand \$types[3] } ( 1 .. 4 ) ]);