A method to choose a random sub array of known size was added to MainActivity.class.