Random number generator not functioning as intended [solved]

Hey all, I've been having trouble with the random number generator [screenshot below titled Random Roll] and the events that should trigger from it [one event screenshotted below titled Forest Rot].

Long story short, when the hero moves to this map, the Random Roll event should trigger and pick a number between 1 and 100. This part seems to work well when I tested the output with a textbox that gave the \v output. However, I have a few items that should spawn when the roll is within a certain range (for example, the Forest Rot should only spawn when the roll is 1-10).

It works well enough the first time the Forest Rot spawns in, but even after the hero leaves the map and comes back, the random number from the variable might be above 10 (which I know from the \v output in another event), yet there is another Forest Rot there. The Forest Rot can be harvested again, and when the hero leaves and comes back, the Forest Rot persists even though the variable is above 10.

I've tried just about everything I could think of and even did about 2 hours of research online to no avail. Can anyone tell me what I am doing wrong? Please and thank you.
Does anything turn off the self-switch A? Cause if nothing turns that off, it'll stay spawned, right? Turn the self-switch A off after harvesting and then erase the event and it should be be working.
Once the player harvests the Forest Rot, I have it set to erase event. That should make it so the event is completely scrubbed until the hero goes back on the map, thus restarting the event, right?
Not necessarily. The switch is still on, regardless if the event is there or not. Try turning it off and see if the event works. That's all I can see that's going wrong. I could be wrong, I haven't used Ace in forever and it was the first thing that struck me as odd.
Not necessarily. The switch is still on, regardless if the event is there or not. Try turning it off and see if the event works. That's all I can see that's going wrong. I could be wrong, I haven't used Ace in forever and it was the first thing that struck me as odd.

YOU ARE A GENTLEPERSON AND A SCHOLAR!

Your solution worked. It stemmed from my flawed understanding of erased events! Thank you so much!!!!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/random-number-generator-not-functioning-as-intended-solved.118272/