Java tutorial
import java.util.Random; public class Main { public static void main(String... args) { Random rand = new Random(); int[] a = new int[100]; for (int i = 0; i < 100; i++) { a[i] = rand.nextInt(100); System.out.print(a[i] + ", "); if ((i + 1) % 10 == 0) { System.out.println(); } } } }