Randoms aren't handled by the script, they should be handled by the bot client (OSBot) but they are saying that there is no point, since not even normal users do random events. Everybody pretty much dismisses them.
However, genie random event is another story, and you've just given me a good idea, I will try and handle it via the script, thank you for the suggestion.
As for the safety of the script, don't worry, this script uses antipattern and antiban behaviour so you can only get banned if you bot too much or get caught manually by jmod