Nullpointer exception fixed. Sensor can NOT extend HardwareObject if
Random is used. Unless Random is used as a local variable in a method
and not passed on from there. -_-