Random and If Else help

-a- please first learn how to post code here correctly,
use the

</> code tag

and see
```
type or paste code here
```


if setting variables and you not understand the result
there are 2 easy ways:

  • please use print statements for the variables
  • or set them to fix value

make it a function ( not a class )
to draw a rectangle by lines.

never use

random( 0, max ) 

for this usage, as you might end up to see nothing, better use a minimum

random(10,max)