Write code to declare and instantiate an object of the Random class (call the object reference variable rand). Then write a list of expressions using the nextInt method that generates random numbers in the following specified ranges, including the end points. Use the version of the nextInt method that accepts a single integer parameter.
A 0 to 10
b.0 to 500
c. 1 to 10
d. 1 to 500
e. 25 to 50
f. -10 to 15