Java program to have random number(s) within a specified limit

Code package com.physicsinfo; import java.util.Scanner; public class Main { public static void main(String args[]){ System.out.print(“Enter the highest integer within which you want the random number: “); Scanner sc = new Scanner(System.in); int highest = sc.nextInt(); System.out.print(“How many random numbers do you want to have printed: “); int count = sc.nextInt(); double rand; System.out.println(“Here is/are your …

Java program to have random number(s) within a specified limit Read More »