From what I gather, the first switch gets randomly placed in one of a few designated trash cans, and then the second switch gets randomly placed in one of a second set of trashcans.
Have an autorun event that rolls a random variable 0 - X (X Being the number of switches that can be "switch 1")and end it with either erase event, if the player comes back to this map or a self switch, if you want the location to be permanent. Put a conditional branch into each of the switches checking for that variable.
If "SwitchRNG = 0" in one of them, If "SwitchRNG = 1" in another and so on.
Turn SWITCH "Switch 1 found" ON
roll a random variable 0 - X (X Being the number of switches that can be "switch 2")
else
Do nothing, or "This is the wrong switch"
Put a second page on all the switches with the condition switch "Switch 1 found".
Now we repeat the same process.
If "SwitchRNG = 0" in one of them, If "SwitchRNG = 1" in another and so on.
Turn SWITCH "Switch 2 found" ON
WHatever is supposed to happen when player finds switch 2.
else
Do nothing, or "This is the wrong switch"
Now if you want to copy the pokemon trashcans 100%, you'll have to be a little more specific in eventing which "trashcans" can be 1 or 2. The method I described basically makes all the "trashcans" a possible success (But only one of them at a time, of course)
The player will have to find 2 switches which will be randomly chosen among the "trashcans", which is essentially the same thing gameplay wise. The only "downside" being that it's statistically possible for switch 1 and 2 to be in the same spot.
As I said, you can get more elaborate with it, but my brain isn't braining enough right now to write an even longer tutorial on how to basic rpg maker functionality. Hope this'll work for you, or at least nudge you in the right direction.
OK, thanks, I'll take care of it and get back to you ! 🙂
Looks about right, although I don't speak french. There must also be a second page with the condition "Switch 1 found".