Question: LC - 3 : Random Number Generator ( 5 0 points ) Random numbers are an important concept in computer science because they are often
LC: Random Number Generator points
Random numbers are an important concept in computer science because they are often used
to simulate realworld events. For example, in a game of chance, random numbers are used to
determine the outcome of the game. In a computer simulation, random numbers are used to model
the uncertainty of the system being simulated. Additionally, random numbers are used in many
security applications, such as generating secure cryptographic keys and simulating user behaviour
for testing purposes. Overall, the ability to generate random numbers allows computers to model
and analyse complex, uncertain systems, making them a fundamental tool in computer science.
However, computers cant just randomly generate numbers. They can make use of events of nature
that appear to be random or at least, infeasibly hard to trace a pattern but what also happens
regularly is that they use socalled pseudorandom number generators. An example of such a
pseudorandom number generator where each number can be defined from the previous number can
be seen in Equation given the three nonnegative integers a b and m
Xn aXn b mod m
Computer Architecture Homework
Lastly, we need to define the initial number, X For this, computers usually take some noise, like
the current time, but for your case, we will provide you with some artificial noise in the form of a
few random characters or maybe a few dozen Another name for this initial number X is the seed.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
