RNG in events?

I'm making a game similar to Oregon Trail, i'm wondering if theres any way to do random number generators to randomly
pick an event (loosing a wagon part, getting injured)? It would also be good if the chance can be altered depending on a variable or something.

thanks if you can help

dirtroad.png
When you click Control Variables in the event editor, one of the options is to select from a random range.
You'll probably want to put this in a Common Event so it can be reused over and over. There might even be an option to use a variable in your Control Variable random number command.

Original thread: https://forums.rpgmakerweb.com/threads/rng-in-events.134754/