Question: 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

 Generate 10 random numbers between 1 and 50 using either the

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 I public static void main(String args[]) [ Random rand = new Random(); int new Rand =0; II/todo 3

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