Add simple biased randomizer.

This takes lines on stdin, and randomizes them, biasing in favour of earlier
lines in the input (i.e. if you have 4 lines, line #1 is 4x more likely to
appear at the top of the output than line #4).

This is quite rough, and needs further polishing and thinking.