Item Give Random Status

Is there any way to make an item apply a random status to the target within a list of possible IDs? Or if the target is affected by status X it will receive another status between ID10-50 for example.
Which engine are you asking for? You posted in MZ support, but your profile says you use MV.

The complicated way is to use the default Effects. First, you put a pointless, empty state on the target so you know who was targeted with the item. Then you call a common event and put everything inside of conditionals checking for which member of the troop has that targeting state.

You can do any of the things you want, choose a random state, use conditionals to say "if it has X get a different state." But it'll be a pretty convoluted event.

The slicker way is to use plugins for Action Sequences, but that's different depending on whether you're using MV or MZ. In MV you'd use Yanfly's Action Sequences, and in MZ you'd use VisuStella's Battle Core.
I'm using MZ, I'm going to update my profile, unfortunately I can't use VisuStella's Battle Core because I'm using the Akea battle plugin, so I'll have to do it the hard way...

Edit

I was looking at fossil and saw that it is possible to use Yanfly's Action Sequences in MZ, can you tell me how to do this with the plugin?

Original thread: https://forums.rpgmakerweb.com/threads/item-give-random-status.165672/