Random 1up?

I want to make an item that when consumed will increase a random stat of ONLY the user and not the whole party or a specific character but im not quite sure how to do it
Can this item be only used in the menu? Then you can put hp recover with damage formula (replace X with variable id):

$gameVariables.setValue(X, $gameParty._targetActorId); 0

And also make the item use a common event. There you can roll a random number and make conditionals that increase a stat depending on the roll and in the 'change parameter' event command make it affect an actor based on the variable X.

Original thread: https://forums.rpgmakerweb.com/threads/random-1up.175007/