A magic card drawing simulation with 1000 trials

The average number of turns required to find 3 copies of the target card is 0.6.

Turn Games Sum
0 740 740
1 104 844
2 78 922
3 33 955
4 24 979
5 13 992
6 4 996
7 2 998
8 1 999
9 1 1000
10 0 1000
11 0 1000
12 0 1000
13 0 1000
14 0 1000
15 0 1000
16 0 1000
17 0 1000
18 0 1000
19 0 1000
20 0 1000
21 0 1000
22 0 1000
23 0 1000
24 0 1000
25 0 1000
26 0 1000
27 0 1000
28 0 1000
29 0 1000
30 0 1000
31 0 1000
32 0 1000
33 0 1000
34 0 1000
35 0 1000
36 0 1000
37 0 1000
38 0 1000
39 0 1000
40 0 1000
Number of cards in deck:
Number of target cards:
Number of search cards:
Desired number of copies 
of the target card:
Go first?
Number of trials:
Number of lines to print together:

Mulligan algorithm:
Mulligan to 6 if 0, 1, or 7 target cards
Mulligan to 5 if 0, 1, or 6 target cards
Mulligan to 4 if 0 target cards
Mulligan to 3 if 0 target cards
Keep 3 no matter what


If you notice a problem with this page,
please e-mail me!