Users will have a store and I need to calculate sales they get based on an average ratio. Let's say 1 out of 35 customers typically make a purchase. If they get 350 customers a day, they would average 10 sales a day. But thats too exact, and its not real. If you take that ratio to real life, each customer has a 1:35 chance of making a sale, and therefore you could have 2 or more in a row. I want to have a bit more realism but something that makes sense using that average ratio. I could do a loop for each customer, but I need code that can scale with potentially thousands of users and thousands of virtual customers.
Could I make 35 (or whatever my 1: ratio is) a weight for picking a random number, that would much more likely be 30-40 rather than 100?
If I can explain something better please let me know. Thanks in advance for your help!