Question: Need help with this CS problem in python, Thanks | 6.1 HW3 Part A: Random Numbers You may have already noticed that testing programs can

 Need help with this CS problem in python, Thanks | 6.1

Need help with this CS problem in python, Thanks

| 6.1 HW3 Part A: Random Numbers You may have already noticed that testing programs can become frustrating. You need to come up with different input values you can run your code with. One tool we will use to help with this project is random number generators. In practice, computers can not act randomly. As programmers, we solve this problem with random number generators. These programs are predictable, but only if the start value (called a seed) is known. We pick a seed using something that will appear random to the user. For example, the current (CPU temperature + Memory Used) *Current Time. This is probably not something the user would know. To the person using the program, that number seems random. With that as the seed, everything else will feel random to the person running your program. The first thing we need to do is get the random number generators. These are part of a library in Python 3. import randor Once we have the library, we can seed the random number generator with a start value random-seed (10) We can now use the random number generator to create the appearance of randomness x = randon. randint(2,10) #Gets a Random Integer between 2

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!