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 723 723
1 101 824
2 92 916
3 37 953
4 25 978
5 10 988
6 8 996
7 2 998
8 0 998
9 0 998
10 1 999
11 0 999
12 1 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!