Ruling on selling e.g. toy guns/cars, where the physical product is known to buyer before purchase, but some come with a code that, when entered into an online game, gives a random digital item. so physical product is known while digital item is unknown is it permissible to sell such products?

Ustadh AbdulAziz al-Haqqan
If they buy it for the unknown item it is forbidden, but if they buy it for the known item and don't care about the digital one it is allowed as with this combination Allah knows best i do not know.