I have a sigs file of the form:
<count> . sig . sig .
and so on. Right now I use a perl script to generate a random number between 0 and (count-1), skip that many sigs and copy the next one into .signature.
It does this three times, so it's not very efficient. Can anyone suggest another fair means to do this, reading the whole file at most once? I can reformat the sigs file if it would make the problem easier, but I don't want to include any more 'metasig' than I have to, since that would make my Vim macros excessively complicated.
Each sig can contain anything except /^.$/.
Alexis
ps. Here are some interesting things to say... (paraphrase, Dr. Seuss)