Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.Random;

public class Main {

    public static int[] randomIntArray(int length) {
        int[] ran = new int[length];
        Random random = new Random();
        for (int n = 0; n < ran.length; n++) {
            ran[n] = random.nextInt(100);
        }
        return ran;
    }
}