RaymondZuo301_processing/The Nature of Code/C0_2_randomCounts/C0_2_randomCounts.pde
float[] randomCounts; 
void setup(){
    size(640,240);
    randomCounts = new float[20];
}
void draw() {
    background(255);
    int index = int(random(randomCounts.length)); 
    randomCounts[index]++;
    stroke(0);
    fill(127);
    int w = width/randomCounts.length;
    for (int x = 0; x < randomCounts.length; x++) { 
        rect(x*w,height-randomCounts[x],w-1,randomCounts[x]);
  }
} //<>//