MZ How to add random choices?

Almost exactly what This Thread's Trying to achieve.

Mechanical explanation
I need to have a system where 3 random values are picked out of (10 right now, more later.) with no repeats. Based on the value chosen, Different things will happen when a button is pressed.

(Less helpful?) Regular explanation
I am using Sang Hendrix's Picture UI creator plugin to attempt to make Random Upgrade Choices. The plugin is paid so i dont expect any knowledge of it, but Show Choices Won't work.

Past Attempt
What i tried doing was making 3 events, spawning in succession.
event 1 picks a random number between 1, and 10, then changes a unique variable for each one to [1] based on the number, and spawns event 2. after that, when the okay button is pressed on event 1's choice, it then looks if each unique variable is 1. once it finds the variable that's value is 1, it creates an upgrade effect that has been tested and has worked outside of this event. it then despawns itself and the other events.

event 2 has a loop, where it picks a number like event 1, then checks to see if that choice's unique variable is 1, if it is, nothing happens and it loops again. if it isn't, it change's that upgrade's unique variable to 2 and spawns event 3. after that, it does the same thing as event 1 does when the button is pressed, but checks to see if the variable is 2 or not.

3 is basically the same as 2, but it checks if the unique variable is greater than or equal to 1 to see if it has to reroll, and it checks if the unique variable is 3 for the effect.

When i tried it and fixed the ton of other bugs it had, the only one remaining that i couldn't figure out was that most of the upgrade effects wouldn't trigger. It's not a problem with the UI plugin since all of the other things that happen when the OK button is pressed worked fine, its just that.

So i looked at my events again and... yeah i probably need something better. Is there any help or advice you could give me?
Mechanical explanation
I need to have a system where 3 random values are picked out of (10 right now, more later.) with no repeats. Based on the value chosen, Different things will happen when a button is pressed.
So, based on this you'd want to have:
1. a series of numbers, like 1,2,3,4,5,6,7,8,9,10
2. a mechanism that picks a number at random, stores it some place, and removes that number from the series
3. repeats the above three times

What I'm not understanding is what you want to do next. You explain your past attempt involving three events, but perhaps it is better to explain what you would like to do with the three numbers. It seems unnecessarily convoluted, but this may be because I'm not understanding what you're trying to do.
So, based on this you'd want to have:
1. a series of numbers, like 1,2,3,4,5,6,7,8,9,10
2. a mechanism that picks a number at random, stores it some place, and removes that number from the series
3. repeats the above three times

What I'm not understanding is what you want to do next. You explain your past attempt involving three events, but perhaps it is better to explain what you would like to do with the three numbers. It seems unnecessarily convoluted, but this may be because I'm not understanding what you're trying to do.
Sorry, I thought i explained it, but after all numbers are picked, a different effect will happen depending on the value.
I had separate events because each value will be a different choice

If event 1 picks an attack upgrade with the value, clicking on it while selecting that choice will increase your attack
There's quite a few ways to do this. A fairly easy way is to make use of the event flow control section and have it randomize the 3 variables and compare it to the previous randomized variables. If it matches have it jump back to the randomize part of the event until the number don't match. As shown below.
Event.png


As opposed to spawning multiple versions of the next event. I'd just set up one that uses If statements to check the stored variable and run the appropriate sequence.
There's quite a few ways to do this. A fairly easy way is to make use of the event flow control section and have it randomize the 3 variables and compare it to the previous randomized variables. If it matches have it jump back to the randomize part of the event until the number don't match. As shown below.View attachment 346436

As opposed to spawning multiple versions of the next event. I'd just set up one that uses If statements to check the stored variable and run the appropriate sequence.
Would i still have to check for every variable for each possible value six times (for activation and display for each temporary variable)? because i feel like that's where some issues came up.
Ah, I get it now, sorry for the slowness. So you basically want the player to pick one of three rewards that are chosen at random from a deck of X rewards?

I think you can have the event @Crim_T has provided as something that triggers once. Afterwards your three events will each reference one variable (62, 63, or 64 in @Crim_T 's example) and use that for displaying and processing the reward.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-random-choices.179289/