summaryrefslogtreecommitdiff
path: root/generate_text.pl
diff options
context:
space:
mode:
Diffstat (limited to 'generate_text.pl')
-rwxr-xr-xgenerate_text.pl12
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";
+}