Is it possible to observe randomized variable calculation through the console?

Long title, I know. What I'm asking is:

Is it possible to see the system randomly set a variable to a certain number in the console when going through an event?

I've set up a rather complex event for tournament matches in my game. In the tournament, there are two matches, the second match largely depends on the outcome of the first match, both for the player and the computer.

If the computer player loses their first match, you are automatically granted a second win although the points earned for an opponent forfeit is much less than what you would earn from actually taking part in the second fight.

I set up a conditional like this:

If variable X is < 3 then X is a loser.

The randomized variable is 1-6. So there is a 33% chance of the computer opponent losing their first match.

My event is pretty long so I was wondering if there was a way to observe this in the console window so that I can see everything is working properly. I'm sure I did structure the event right but it would put me at ease to see it all in the console window without having to sit through the event dozens and dozens of times. I would with other events, but this is a long and complex one.
you need to enter a script command into the event.

Inside the script command window you can use the rgss-command p (yes, an one-letter-command) to print anything to the console

p outputwhere output can either be a textstring or a ruby variable or whatever
p $game_variables[id]
Yes! I like what I'm seeing. Everything is in order and working as I need it to, thank you.

I'll be sure to note this along with...the dozens of other notes I've made from all the answers to the questions I posted here.

All in one notepad file of course...
If it's a variable and it's only calculated once, you could also just use F9 (debug) to see its contents. I'm not sure if it works in the battle screen though.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-observe-randomized-variable-calculation-through-the-console.21107/