Skip to content

Instantly share code, notes, and snippets.

@Songmu
Created December 20, 2010 09:00
Show Gist options
  • Select an option

  • Save Songmu/748175 to your computer and use it in GitHub Desktop.

Select an option

Save Songmu/748175 to your computer and use it in GitHub Desktop.
String::Randomのサンプル
#!/usr/bin/perl
use String::Random;
use utf8;
use Encode qw/ encode decode /;
my $rand_maker = String::Random->new;
print encode('cp932', String::Random->rand_maker->randregex('[ーァ-ヶ]{3,6}')) ."\n" for 1..5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment