diff options
| author | Toby Goodwin <toby@paccrat.org> | 2015-10-23 11:17:53 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-10-23 11:17:53 +0100 |
| commit | 680d794205b9e7ec0f17732dd31fc231a84b0115 (patch) | |
| tree | c40c99d5272ee0e021ae55641842fbe9e2f37656 /random.pl | |
| parent | 85bdc54544a8b0f9f8c4b2103a7eced0dde69fb2 (diff) | |
| parent | c884da53a7c885d46ace2b92de78946855b18e92 (diff) | |
Merge branch 'master' into develop
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; +} |