Question: BIO 4 8 0 / 6 8 0 Computer programming exercise III This exercise is based on a program that might have been used for

BIO 480/680 Computer programming exercise III
This exercise is based on a program that might have been used for our project that tested the random number generator for uniformity. This program is listed on the next page of this exercise. The line numbers have just been added for reference purposes.
What is the purpose of lines 3-5 in the program?
As noted in the comment in line 7, why would we want the system time used as a seed for the random number generator?
The variable number appears in lines 10,11, and 13. What is this value use for?
The variable count is an integer array. What is it used for in this program? Why does it only need 10 rows, as indicated in line 11.
In line 15, what is the "+=1" part doing?
6 In line 14, what is the "(0,9)" part specifying?
Why does line 10 specify that the variable x has to be an integer variable?
What is the purpose of the for loop in lines 17-18? It uses the "range" function. What values does this function return?
What would we have to change to get the program to look at the uniformity over 1000 random integers?
BIO 4 8 0 / 6 8 0 Computer programming exercise

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 Programming Questions!