@DataProvider(name = "generateData")
    Object[][] generateData() {
        final Random ran = new Random();
        final Object[][] intData = new Object[Config.RUNS][];
        for (int i = 0; i < intData.length; i++) {
            final List<Integer> data = new ArrayList<Integer>();
            int counter = 0;
            while (counter < ARRAYSIZE) {
                data.add(ran.nextInt());
                counter++;
            }
            intData[i] = new Object[]{data};
        }
        return intData;
    }
@ DataProvider ( name = "generateData" ) Object [ ] [ ] generateData ( ) { final Random ran = new Random ( ) ; final Object [ ] [ ] intData = new Object [ Config . RUNS ] [ ] ; for ( int i = 0 ; i < intData . length ; i ++ ) { final List < Integer > data = new ArrayList < Integer > ( ) ; int counter = 0 ; while ( counter < ARRAYSIZE ) { data . add ( ran . nextInt ( ) ) ; counter ++ ; } intData [ i ] = new Object [ ] { data } ; } return intData ; }
Generating the data, just once per runtime.