0

can someone give a code in java to give rendome 16 numbers

code source in java

3rd Apr 2017, 1:26 AM
Mohamed Aillane
Mohamed Aillane - avatar
2 Réponses
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 + ""); }} }
3rd Apr 2017, 1:54 AM
David Techi
David Techi - avatar
0
thnx bro
5th Apr 2017, 11:01 AM
Mohamed Aillane
Mohamed Aillane - avatar