Please help for very basic coding task

It keeps escaping me on how to do the following

void setup(){
  size(800,400);
  rect (width/2,height/2, ? , random(30,80));
}

I need to make the figures body width twice the randomized body height, I don’t know how though.

2 Likes

actually the problem is solved now, my dumb self forgot to use variables for rectheight

1 Like

You’re not dumb, we all do that.

4 Likes