so say you want to win the jackpot, you need 3 lollipops. you only start out with two (unless it’s your second run and you haven’t cleared your browser in which case there’s a bug with persistent variables). if you don’t purchase a third you can only ever roll a maximum of two lollipops at once. when you buy one you then have 3 available so if luck is on your side you now have the ability to roll all 3 and win the jackpot.
you start off with two of everything except the gummy bear which you only have one of
hope this explains it? it’s essentially a list of available items (with multiples of the same item depending on how many you own) and i randomise 3 unique indexes in your list of available items.
idk if i’ve explained this well or not