Skip to content
RED SAGSkills
hard20 pts · first answer countsmathprobabilityalgorithms

Weighted random server choice

Servers have weights [1, 3, 6], so prefix sums are [1, 4, 10]. A random r in [0, 10) is 4.5. Using 'first index whose prefix sum is greater than r', which server is picked?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions