Added generating random events