Write a script that will generate a vector of 10 random integers, each in the range 0 to 100. If… 1 answer below »

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper Order a Different Paper

Write a script that will generate a vector of 10 random integers, each in the range 0 to 100. If the integers are evenly distributed in this range, then when arranged in order from lowest to highest, they should fall on a straight line. To test this, fit a straight line through the points and plot both the points and the line with a legend. For example, when tested, the random integers might be

and the plot might look like the one in Figure 15.9.