Support passing seed as argument

This allows the PRNG seed to be passed as a command-line argument. Output
is also printed without any intermediary text to make scripting easier.