Solved Homework: Question: 2. a) A programmer wants to design a random number generator using 32-bit unsigned integer repres…

2. a) A programmer wants to design a random number generator using 32-bit unsigned integer representations. Would this give a fair distribution of pseudo-random numbers? Explain your answer.

2. a) A programmer wants to design a random number generator using 32-bit unsigned integer representations. Would this give a “fair” distribution of “pseudo-random” numbers? Explain your answer.

Expert Answer

answers

I believe I can answer in plain language. The way that computer programs typically get random numbers is through a combination of two important devices 1. Get the system time as the random number seed. This begins a sequence of numbers 2. Use a pseudo-random number generator once a sequence has been started by (1), so that the relationship between one number and the next in the sequence is not detectable. This is done by applying a complex mathematical transformation You need both these things, for good reasons. Just one or the other by itself wont cut it When you get the system time in milliseconds, Im assuming - youre getting a number that is gradually increasing, but as a typical human (Im assuming youre not Superman and youre not carrying a special device to measure time in milliseconds), youll be unable to predict what the last few digits are.Then, the psuedo-random generator transforms that seed into the next number in the pseudo random sequence This pseudo-random generator creates a kind of Butterfly Effect. Simply put, tiny differences between the starting seed values (the system time, remember) result in huge, unpredictable differences in the second item in the sequence produced by the algorithm. That second item can then be used as the first random number. And thats how a computer programs produce random numbers! They are random in the sense that they defy human prediction and human ability to detect patterns The numbers are not random in principle. However, they defy any predictability that could be observed by all but a very few humans The initial number produced depends on the precise number returned by the system time function But as the system time changes by even the smallest amount, this results in arbitrarily large changes in the 2nd number in the random series The random series itself is deterministic, but reverse engineering the series is deliberately made exceptionally difficult by the nature of the algorithm, which is a complex mathematical transformation that eludes obvious patterns So, for example, nothing so obvious as odd/even/odd/even will emerge from a good random-number generator Note that the randomness, which holds for all practical purposes, depends on both the seed from system time, as well as having an adequate algorithm to get the next number in the sequence. If the same seed were used during

Buy Essay
Calculate your paper price
Pages (550 words)
Approximate price: -

Help Me Write My Essay - Reasons:

Best Online Essay Writing Service

We strive to give our customers the best online essay writing experience. We Make sure essays are submitted on time and all the instructions are followed.

Our Writers are Experienced and Professional

Our essay writing service is founded on professional writers who are on stand by to help you any time.

Free Revision Fo all Essays

Sometimes you may require our writers to add on a point to make your essay as customised as possible, we will give you unlimited times to do this. And we will do it for free.

Timely Essay(s)

We understand the frustrations that comes with late essays and our writers are extra careful to not violate this term. Our support team is always engauging our writers to help you have your essay ahead of time.

Customised Essays &100% Confidential

Our Online writing Service has zero torelance for plagiarised papers. We have plagiarism checking tool that generate plagiarism reports just to make sure you are satisfied.

24/7 Customer Support

Our agents are ready to help you around the clock. Please feel free to reach out and enquire about anything.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

HOW OUR ONLINE ESSAY WRITING SERVICE WORKS

Let us write that nagging essay.

STEP 1

Submit Your Essay/Homework Instructions

By clicking on the "PLACE ORDER" button, tell us your requires. Be precise for an accurate customised essay. You may also upload any reading materials where applicable.

STEP 2

Pick A & Writer

Our ordering form will provide you with a list of writers and their feedbacks. At step 2, its time select a writer. Our online agents are on stand by to help you just in case.

STEP 3

Editing (OUR PART)

At this stage, our editor will go through your essay and make sure your writer did meet all the instructions.

STEP 4

Receive your Paper

After Editing, your paper will be sent to you via email.

× How can I help you?