Question: Data Structure JAVA Generate 10 random numbers between 1 and 50 using either the random() function. For each number generated: a) If the value is
Data Structure JAVA

Generate 10 random numbers between 1 and 50 using either the random() function. For each number generated: a) If the value is greater than 45 have the script display the number plus 50. b) If the value is less than 10 have the script display the number as is. c) If the value is between 15 and 20 then display the number minus 10 . d) Otherwise display the number minus 100. import java.util.Random; public class Question4 \{ public static void main(String args[]) \{ Random rand = new Random(); int newRand =0; ///todo \} \} Edit View Insert Format Tools Table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
