Randomization for Distribution
Another interesting use of randomization is for distributing items evenly. This is another example of where randomization is counterintuitively used for the sake of creating order.
Probability theorists like to discuss the concept of putting “balls into bins.” That is, say we have 10 bins (or boxes, if you like) and want to distribute a whole bunch of balls into them evenly. This is easy to do if we know how many balls we have. If we have 1,000 balls, we place 100 balls in each bin. But what if we don’t know how many balls we have? How can we ensure that we distribute them evenly?
In such cases, we can still fill the bins evenly if we use a “round-robin” approach. That is, we rotate through the bins, putting a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access