Getting a random color checkerboard with random fill

int changer;
int changeg;
int changeb;
void draw(){
int r=int(random(0,255));
int g=int(random(0,255));
int b=int(random(0,255));

float[] [] [] colors = new float[r][g][b];


for (int x = 0; x < width; x+=10) {
  for (int y = 0; y < height; y+=10) {
    noStroke();
    fill(r,g,b);
    rect(x,y,10,10);
  }
} 
}
void setup(){
size(400,400);
}

I'm trying to get this program to be a checkerboard with random fill values.

Tagged:
This discussion has been closed.