1. Engineering
  2. Computer Science
  3. use a python simulation to analyse the following situation...

Question: use a python simulation to analyse the following situation...

Question details

- Use a python simulation to analyse the following situation described in "The Drunkard's Walk" by Leonard Mlodinow

"A few years ago Canadian lottery officials learned the importance of careful counting the hard way when they decided to give back some unclaimed prize money that had accumulated. 3 They purchased 500 automobiles as bonus prizes and programmed a computer to determine the winners by randomly selecting 500 numbers from their list of 2.4 million subscriber numbers. The officials published the unsorted list of 500 winning numbers, promising an automobile for each number listed. To their embarrassment, one individual claimed (rightly) that he had won two cars. The officials were flabbergasted — with over 2 million numbers to choose from, how could the computer have randomly chosen the same number twice? Was there a fault in their program?"

Note: Do not create a list of the 2 million possible numbers! Keep track of just the winning values so far.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution