Random Seed Control

Added code for fixing RNG seed.