Suppose tool is an object of class Random. Write a while loop to generate 1000 random numbers from 1 to 10. Declare an int array results to record how many 1's, 2's, ., and 10's among these 1000...


c#


Suppose tool is an object of class Random. Write a while loop to generate 1000<br>random numbers from 1 to 10. Declare an int array results to record how many 1's,<br>2's, ., and 10's among these 1000 random numbers. Use a for loop to output the<br>values of the array results in the following format:<br>1<br>98<br>2<br>100<br>3<br>101<br>4<br>95<br>102<br>66<br>7<br>105<br>92<br>103<br>10<br>105<br>

Extracted text: Suppose tool is an object of class Random. Write a while loop to generate 1000 random numbers from 1 to 10. Declare an int array results to record how many 1's, 2's, ., and 10's among these 1000 random numbers. Use a for loop to output the values of the array results in the following format: 1 98 2 100 3 101 4 95 102 66 7 105 92 103 10 105

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here