How does MV seed its RNG?

I'm curious about this. Is it based off of in game time? The system clock's time? The amount of steps you've taken? Would love some insight into this if anyone knows 🙂
Which part of RNG are you talking about?
When I read the title, I was assuming the dungeon map generator.
By how you're wondering, it's sounds like you're talking about battle encounter rate.
And it's clearly shown in the map property that encounter rate are based on the number of your steps.
Which part of RNG are you talking about?
When I read the title, I was assuming the dungeon map generator.
By how you're wondering, it's sounds like you're talking about battle encounter rate.
And it's clearly shown in the map property that encounter rate are based on the number of your steps.

Okay, so how about stuff like crit chance, evasion, spell reflect, hit chance, target rate, etc.?
If you mean Math.random (how random numbers are generated in javascript, it's shrouded in mystery (probably system internals, the clock, etc) but that doesn't matter because neither the player nor the developer can influence it. If you're looking for a solution that lets you set a specific seed value, you'll have to look into other, custom PRNGs which do accept seed values.
Oh sorry for being a little unclear, the part I'm interested about the most is determining a random variable in the "Control Variables" command. Although the other stuff would be interesting to know too.
What I said still applies. The random number generated by control variables utilizes Math.randomInt(), a function defined in rpg_core.js that in turn uses Math.random().
If you’re wondering about hit chance versus evasion chance for instance, the hit chance is calculated first then the evasion chance is calculated. @bgillisp is to thank for me finding that out. So the two are calculated separately not together. The example I saw them use was 95% hit chance calculated first, then a 5% evasion calculated, so the result is not 90% chance to hit as you may at first glance assume, but actually 90.25% chance to hit (I hope I got that right 😛 )
Yep that's it. Most round it to 90% though, but it is important to note it is not just to hit - eva. You can make it that way with a plug-in though.
Unless I'm mistaken, a lot of RNGs use atmospheric noise as the seed for their generation, js's Math function could potentially use that as well.

Original thread: https://forums.rpgmakerweb.com/threads/how-does-mv-seed-its-rng.121842/