Random Stat Growth by Formula

Hello and good day to you all.

There's a specific thing I've wanted for ages, which is a plugin for random stat growth on level-ups following a specific formula.

The chance for a stat to grow would be (Actor's max for the stat - Actor's current stat) / (Actor's max level - Actor's current level).

The idea is, the stat will be random for most of the game, but will be fixed at the maximum level.

Other ideas for the implementation:
  • If the chance would be higher than 100%, it could give +1 at 100% chance and an additional +1 with (chance-1).
  • For the actor's maximum for each stat, you could use the database value for the stat at 99 (which would otherwise go unused).
https://mrtrivelrpg.wordpress.com/2016/03/15/gain-stats-on-level-up/
Although that plugin gets close to what I want, it uses stat bonuses from equipment into the formula, which makes it wonky - now the better your equipment, the lower the chance to increase the character's stats.

Original thread: https://forums.rpgmakerweb.com/threads/random-stat-growth-by-formula.100940/