Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- public class Main {
- public static void main(String[] args) {
- int[] numbers = new int[1000];
- Random rand = new Random();
- for (int i = 0; i < numbers.length; i++) {
- int rand_int1 = rand.nextInt(90)+10;
- numbers[i] = rand_int1;
- System.out.print( numbers[i] + " ");
- if (i%20 == 19){
- System.out.println();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement