Small Script to compare and generate a random value

Could someone help me out to make my event work.

I created a small event where you can choose to collect something ort not. If you choose yes it will continiue to generate a random number between 0 and 1 and store it in variable 10.

Now I need to get a script to check the stored number == and not >= but sadly RPG Maker just have the function to check >= as a pure function without scripting.

Could someone help me out with this?
You should already be able to do what you want with events...can you not use this (see image) to do it?

Spoiler
lYMPV.jpg
Oh thanks I used control value so there was no = just >=
Oh thanks I used control value so there was no = just >=
You realise that the screenshot above IS from RMMV?
So it just proves that RMMV has the equal option, please look for it in your conditional branches...

Original thread: https://forums.rpgmakerweb.com/threads/small-script-to-compare-and-generate-a-random-value.53147/