write a program to generate random numbers between 1 to N by using scanner class taking N from the console
Answers
Answered by
1
Answer:
Program to generate random numbers in Java. import java.util.*;. class RandomNumbers { public static void main(String[] args) { int c; Random t = new Random();. // random integers in [0, 100]. for (c = 1; c <= 10; c++) {
Similar questions
Math,
2 months ago
Math,
2 months ago
Social Sciences,
6 months ago
Geography,
6 months ago
Political Science,
10 months ago
Social Sciences,
10 months ago
Social Sciences,
10 months ago