Randomizing Equipment for actors

Hello there.
A while ago, I had an ask regarding how to randomize equipment on actors in RMMV. (https://forums.rpgmakerweb.com/index.php?threads/randomizing-equipment-via-an-event.136961/) That worked for RMMV, but I have since moved on to RMMZ, and am attempting the same thing. I tried the solution provided in that topic, but I think that it's not the same as it is in RMMV. Is anyone able to convert it to something usable in RMMZ? Much appreciated.
There's no reason I can think of that the solution I gave you for MV wouldn't work in MZ. Everything involved should work the same way.
That's weird, and now it's working.
Guess I was just missing something. Sorry for wasting your time.

EDIT: I do appreciate the quick response though. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/randomizing-equipment-for-actors.157247/