MV [YEP_ItemUpgradeSlots] Upgrade Random Stat

I want to have an item that when applied, chooses a random stat on the item to upgrade. There is build in functionality for increasing a specified stat by a random amount, but not for upgrading a random stat. Is there a way to do this?

Edit:
<Upgrade Effect>
Eval: item.params[Math.trunc(Math.random() * 8)] +=1 ;
</Upgrade Effect>

This works.
Not without adding onto/rewriting the plugin. Everything you can do is listed there in the upgrade effects, there's no JavaScript eval option.

Edit: Except there is and I don't know how to read 😛
Not without adding onto/rewriting the plugin. Everything you can do is listed there in the upgrade effects, there's no JavaScript eval option.
I can verify that the javascript eval that I posted in the edit is working.
And I can verify that I momentarily lost the ability to read. Good job all around!

I'm choosing to blame it not being entirely in alphabetical order. Yup, that's it.

Just as a tip, you can shorten that a bit instead of getting the random decimal, multiplying, and truncating, just use Math.randomInt(X) to get a random integer from 0 to X-1. So, in your case,
Code:
Eval: item.params[Math.randomInt(8)]++;

Original thread: https://forums.rpgmakerweb.com/threads/yep_itemupgradeslots-upgrade-random-stat.162962/