summaryrefslogtreecommitdiff
path: root/random.pl
diff options
context:
space:
mode:
authorToby Goodwin <LibreSoftwareDesign@gmail.com>2012-10-01 20:46:40 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:24 +0100
commitc8a77b86b4f8c91314222a8e12e6e37cf182ee10 (patch)
tree770041514630af2c076e5115b3543b7f5ced1d24 /random.pl
parent27c900d6ae9cd0dcf4bc97bc9b8c1882e40ccfa8 (diff)
initial commit
Diffstat (limited to 'random.pl')
-rw-r--r--random.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/random.pl b/random.pl
new file mode 100644
index 0000000..90998d5
--- /dev/null
+++ b/random.pl
@@ -0,0 +1,15 @@
+#! /usr/bin/perl
+
+$count = 10;
+$size = rand(1000);
+
+for ($i = 0; $i < $count; ++$i) {
+ open OUT, "> t$i" or die;
+ for ($j = 0; $j < $size; ++$j) {
+ printf OUT "%c", rand(256);
+ }
+ close OUT;
+ $cmd = "./rc t$i";
+ print $cmd, "\n";
+ system $cmd;
+}