Random variable issue

Hello,
I'm trying to make it so a random building in a village is burning. To that end, I used a random variable as follows:
Fire quest.png
Except for some reason, when I test it, all the buildings are on fire, despite all having different fire ID (I checked). What did I get wrong?
Thanks for reading.
several possibilities:
1) parallels repeat sixty times per second, so unless you turned that off it will quickly activate the switches one after another.

2) something is wrong in the fire events, not in this one

3) the switches were on from other uses before this event
Can we see the fire event which is triggered by the switches?
several possibilities:
1) parallels repeat sixty times per second, so unless you turned that off it will quickly activate the switches one after another.

2) something is wrong in the fire events, not in this one

3) the switches were on from other uses before this event
Possibility one sounds the most likely. But then how do I let the fire burn without using parallel? I need the player to be able to move. I'm not sure how else to do it.
Can we see the fire event which is triggered by the switches?
Fire 1.png

They all look like this, with different fire ID for each building. The switches are Fire 1, Fire 2, Fire 3, Fire 4, Fire 5, Fire 6, and Fire 7, with each number corresponding to a building.
But then how do I let the fire burn without using parallel?
you don't - you just have to switch off the parallel to a different event page after it is run once.
You need to turn off the looping event which randomize fire, because now it randomize that variable all the time. Just put switch ID67 to off after the randomizing the fire.
But then how do I let the fire burn without using parallel?
That set up you showed for the individual fire events will make the fire "burn" - the stepping animation. All your first event is doing is determining which one should be on, so it should only run once.
Possibility one sounds the most likely. But then how do I let the fire burn without using parallel? I need the player to be able to move. I'm not sure how else to do it.

The event's purpose is only to determine which house is burning. This only needs too happen once in the entire game (or at least once every time the quest starts), and doesn't need to run while the player is able to move. As such, it could be an autorun event instead, though in this case it doesn't really make any difference if it's autorun or parallel.

I can see that the event only triggers when Switch #0067 Fake fire quest is ON. You could turn that Switch off at the end of the event, after you've randomly decided which house to burn. But it seems like the purpose of that switch is to tell the game that the quest is still ongoing, so you might not want to turn it off yet.

An alternative solution would be to use a Self Switch, and create an empty page that is only active while Switch #0067 Fake fire quest and Self Switch A are both ON. This should stop the event from randomly turning ON any additional switches, causing all houses to burn.

By the way, you could greatly simplify your event by directly using the Variable #0014 Random fire to determine if the house is burning, instead of using that Variable to turn on a Switch to determine which house is burning. For example, instead of using Switch #0068 Fire 1, you'd use Variable #0014 Random fire >= 1 to turn the fire on, with a second page that turns it off when Variable #0014 Random fire >= 2. It's a bit hacky, but it saves you 7 Switches. Since only 1 house can burn at any one time, there's no need to keep track of 7 separate Switches.

Original thread: https://forums.rpgmakerweb.com/threads/random-variable-issue.144879/