How to use (3 steps)
- Choose uniform (equal chances) or weighted (rarities).
- Enter n and optional t/target; paste weights or probabilities if needed.
- Check the results, then run the simulation for intuition or verification.
Assumptions: independent draws with fixed probabilities. Pity/guarantee systems are out of scope.
Inputs
Simulation results are not stored in the URL—only settings and the seed are shared.
Results
Completion curve (CDF)
Simulation (Monte Carlo)
Runs locally in your browser. Use a seed to reproduce the same run.
Examples
Uniform example (n=50)
With 50 equally likely types, the expected draws is 50·H_50 ≈ 224.96. The 90% completion point is much higher than the mean.
Rare item example (1%)
If one type has probability 0.01 and the others share the remaining 0.99, the rare item dominates the completion time. Use weighted mode to see how the expectation jumps.
FAQ
Why does the last item take so long?
Once most types are collected, each new draw is likely a duplicate. The waiting time for the last unseen type grows like 1/p_min.
Is the uniform formula exact?
Yes. For equal probabilities the expectation is n·H_n and the DP curve gives exact completion probabilities up to the computed t range.
What if probabilities are not uniform?
Use weighted mode with probabilities or weights. For more than 20 types, the exact expectation is expensive, so simulation is recommended.
Can I share a run with my class?
Yes. Copy the URL to share parameters; a fixed seed reproduces the same simulation.
Does this include pity or guarantees?
No. This tool assumes independent draws with fixed probabilities. Other mechanics need a different model.