Stores random state for simulation as well

Signed-off-by: David Evans <dgevans42@gmail.com>