0
can someone give a code in java to give rendome 16 numbers
code source in java
2 Antworten
0
import java.util.Random;
public class Program
{
public static void main(String[] args) {
Random ran = new Random();
int number;
for(int loop=0;loop<16;loop++){
number=1+ran.nextInt(20) ;
System.out.println(number + "");
}}
}
0
thnx bro