A magic card drawing simulation with 1000 trials

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

Turn Games Sum
0 712 712
1 127 839
2 73 912
3 40 952
4 20 972
5 9 981
6 8 989
7 4 993
8 2 995
9 2 997
10 3 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!