How to make an event with random rain?

For example: in 900 frames, there will be a 20% chance of starting to rain, I want to know how I can create an event of such a chance of something happening, for example rain.

I think it's something with variables but, I don't know where it is.

Another example in parallel event mode:
Wait 999 frames
Wait 999 frames
(20% chance of rain)
Wait 999 frames
Wait 999 frames
...
Yep. Use the Control Variables event command and generate a number between 1-100. Then do an IF branch to check if the number is <= 20 or something similar. If true, start your rain.
Yep. Use the Control Variables event command and generate a number between 1-100. Then do an IF branch to check if the number is <= 20 or something similar. If true, start your rain.
I understood, thank you, I'll test.
Have a read,

https://steamcommunity.com/sharedfiles/filedetails/?id=1341167707

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-event-with-random-rain.98832/