Added rand to PID class

It will help when PID state gets stored in checkpoint