Increase a random stat in battle

I'm not exactly sure if this has been asked before but is there a way for an item to increase a random stat in battle?

I have an item which restores some HP but I also want that item to increase a random stat for a certain number of turns during battle. I'm sure there is a way through scripting a custom formula snippet but I'm not exactly sure how to go about writing it....

Original thread: https://forums.rpgmakerweb.com/threads/increase-a-random-stat-in-battle.28504/