Adding random event generator