Random seed support

Possibility to set random seed at command line to aid optimization.