Math, asked by hakamesien, 6 months ago

write a program to generate random numbers between 1 to N by using scanner class taking N from the console​

Answers

Answered by YUVILOVE2009
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