Like Ulam's solitaire, some card games are easy to play and hard to count. In this one you lay the cards numbered 0 to numCards - 1 out in shuffled order and win if no card lands in the position equal to its own number. Write estimateNoMatch(numCards, numDeals) that plays numDeals random deals and returns the fraction that were wins.
print(estimateNoMatch(1, 50)) # 0.0
One card is always in its place, so it never wins; with 10 cards the estimate from 5,000 deals comes out near 0.37.