import java.util.Random;
import java.util.ArrayList;


// double rand1 = rand.nextInt(9);

public void RandomArrayList(int n, int min, int max){
    ArrayList<Integer> aL = new ArrayList<Integer>[];
    Random rand = new Random();
    for(int i = 0; i < n; i++){
        int rand1 = rand.nextInt(max);
        while(rand1 < min){
            rand1 = rand.nextInt(max);
        }
        aL.add(rand1);
    }
}

RandomArrayList(5, 0, 3);
|       ArrayList<Integer> aL = new ArrayList<Integer>[];

array dimension missing