Question: This question relates to pseudo random number generators. You will write a c program that pulls the Powerball numbers. You will demonstrate how a deterministic

This question relates to pseudo random number generators. You will write a c program that pulls the Powerball numbers. You will demonstrate how a deterministic number generator works. In Powerball there are 5 white numbered balls that are pulled out of a drum containing 69 balls numbered 1-69. You cannot pull the same number twice. Additionally one red ball is numbered 1 to 26. You dont have to worry about the PowerPlay option.

A) Write a c program that simulates a single Powerball drawing (5 white numbers and a single red number) and show how it might work over a period of 10 different drawing dates. In other words, use your seed to draw 5 white numbers and 1 red number for week 1. Then, use a new seed for to draw 5 white numbers and 1 red number to simulate week 2. And, yes, I know Powerball gets drawn twice weekly. I am trying to simplify the instructions. Take a screenshot of the output for all 10 weeks.

B) Explain how knowing the seeding of that PRNG will let you buy the winning ticket for any particular week. In other words, how could you rig the selection of the Powerball numbers similar to how Edward Tipton rigged the Hot Lotto?

C) Explain a better way to get the seeding that would introduce more entropy in your program (or maybe in the multi-state lottery system) that would solve this deterministic pattern.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!