Random Item Shop

I would like to request a script for a shop wherein whenever the player opens the shop new set of items are sold. Important, the items in the shop are refreshed such that even after the player has saved data and reopens, the items are new batches. Hoepfully the script allows the use ofa plugin command "random <type>, <id1 min>, <id2 max]> variance" or "random <category> <type> <variance>". I am trying to find it the forums and github, but have not found any. I know there are version from RGSS2 and RGSS3 but have not yet been scripted to java.

The first is for general purposes. type is i = item, w = weapon, a = armor, etc. then a min and max ID of the item is what the number will be generated. The number of items that will be listed is from variance. Example "random item,2,30,10" means item type ranging from ID's 2 to 30 will be selected but only 10 will be in the final list of items that will be available.

The second one is based from tomoaky's TMItemCategoryEx script (uses note tag ItemCategory:X) and TMCard (which defines item card type based on note tag cardType: x).

Thank you in advance for having interest in this request.
not sure if you still need it, but there is a clever way of setting it up,
that randomize from a range 3-50, or 31-50, so anything below 31
and above 50 is ignored, you can also make it show max 6 items in
those range, this can be done through a variable first, at random,
so everytime you interact, the items are different everytime you open
the shop.

if you want specific range as mentioned, id 1, 3, 4, 40, 33 than this
scriptcall doesn't work, but Just to be certain before I place it.

Original thread: https://forums.rpgmakerweb.com/threads/random-item-shop.119659/