diff options
| author | Toby Goodwin <toby@paccrat.org> | 2014-09-02 08:01:39 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:22:10 +0100 |
| commit | a8699a58d8632f21e897ea5c4900a15483a9a8ca (patch) | |
| tree | fd8e7910807eb91bcd79d498582959f1d750f9c6 /random.pl | |
| parent | d884971193ef4934424b77ae862e8b0ecf70bab3 (diff) | |
release: rc-1.7.2
Diffstat (limited to 'random.pl')
| -rw-r--r-- | random.pl | 15 |
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; +} |