hello everyone! how I can do this exercise? The rect may never leave the bounds of the window!
void setup(){
size(842,480);
stroke(0);
frameRate(10);
}
void draw (){
int randomX;
int randomY;
int randomH;
int randomW;
randomX=int (random(842));
randomY= int(random(480));
randomH= int (random (480));
randomW= int (random (842));
int r= int(random (255));
int g= int (random (255));
int b= int (random (255));
fill(r,g,b);
rect(randomX, randomY, randomW, randomH);
}