Add -m option to set monitor output directory.
Simplify random value initialization.