RandomEvent class