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
English,
3 months ago
Chemistry,
3 months ago
Social Sciences,
7 months ago
Geography,
7 months ago
Political Science,
1 year ago
Social Sciences,
1 year ago