Hello - I have a randomization/lottery problem that I need some help with. I have 2 datasets (sample data attached):
- A List of customers
- A List of products, available inventory and odds of winning each product (expressed as a %)
My desired output is the same list of customers with an additional column that notes which product they won (if any). A few constraints / notes:
- Not every customer needs to win something
- Once inventory is exhausted for that product, customers can no longer win it (i.e. if product A has 10 available, only 10 customers can win it at most)
- Not all inventory needs to be used
I've been trying to figure out the right way to run this in Alteryx but not sure on what the right way to approach/start is. Would appreciate any help here. Thank you!