Randomized Shop Inventory

Hello, new to the boards and RPG Maker MV. I've been able to figure out/find everything I've needed so far, but I can't, for the life of me, find something that randomizes shop inventory. 


I'm creating a game that's all about collecting items, and I've got over 200 of them to collect. I would like for most shops to randomize their inventory (number of items, and which item are chosen) in the morning (I'm using a time system) and keep that inventory the rest of the day until a time specified, then have the inventory randomize again. 


I've found this script on another forum: http://rmrk.net/index.php?topic=50743.0


But when I use it, I get an error (that's me that responded to the post in the link) "Type Error: Cannot read property 'setupGoods' as null" and I'm not experienced enough with JS to know what that means or how to fix it. I figure this thing is probably more of a plugin thing, anyway. 


If anyone could help, I'd appreciate it. Have a great day. 
I believe Item Core is what you are after my friend 🙂


http://yanfly.moe/2015/10/16/yep-11-item-core/

Original thread: https://forums.rpgmakerweb.com/threads/randomized-shop-inventory.64338/