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