/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package arrayhistogram;
/**
*
* @author Logan
*/
public class ArrayHistogram {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
}
public static int arrayHistogram (int low, int high) {
low = 2;
high = 78;
int random = (int)(Math.random()*100);
return random;
}
public static int[] randomIntArray (int n) {
int[] a = new int[n];
for (int i = 0; i<a.length; i++) {
a[i] = arrayHistogram (-5, 15);
}
return a;
}
public static void printArray (int[] a){
for (int i = 0; i<a.length; i++) {
System.out.println(a[i]);
int numValues = 8;
int[] array = randomIntArray (numValues);
printArray (array);
}
}
}