How to raise stats by random numbers rather than default?

So I have been trying to understand variables as I'm sure what I'm trying to do has everything to do with them, but I cannot figure this out...

I'm simply trying to ditch the default way stats are given to characters and instead use random numbers. Is it possible to set it so each time a character levels up you can pick what stat gets an increase anywhere from 1 to 3 points?
I believe this would go in Script Requests, and have reported it as such so that a moderator can take care of it.
Moved to: RGSS3 Script Requests
https://mrtrivelvx.wordpress.com/2014/06/30/actor-stats-on-level-up/
or
https://forums.rpgmakerweb.com/index.php?threads/kms-distribute-parameter.3802/

Original thread: https://forums.rpgmakerweb.com/threads/how-to-raise-stats-by-random-numbers-rather-than-default.91759/