diff options
Diffstat (limited to 'generate_text.pl')
-rwxr-xr-x | generate_text.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/generate_text.pl b/generate_text.pl new file mode 100755 index 0000000..845fb44 --- /dev/null +++ b/generate_text.pl @@ -0,0 +1,12 @@ +#!/usr/bin/perl + +$lines = $ARGV[0]; +$chars = $ARGV[1]; + +die unless $lines; +die unless $chars; + +while ($lines--) { + print int(rand(9)) x $chars; + print "\n"; +} |