Skip to content

Instantly share code, notes, and snippets.

@libitte
Created September 27, 2014 15:21
Show Gist options
  • Select an option

  • Save libitte/3dc3574673b84ac9c7c2 to your computer and use it in GitHub Desktop.

Select an option

Save libitte/3dc3574673b84ac9c7c2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use List::Util qw(shuffle);
#ruby
#('a'..'z').to_a.shuffle[0..7].join
my @shuffled = shuffle ('a'..'z');
print join '', splice @shuffled, 0, 8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment