Updated to use prng seed from command line, and to use a default seed when none is provided.