Random and If Else help

Thank you for the advice on posting code… edited it.

In this case

random(0,width)

0 would be the left boundary of the screen? So it is still something? I get your point, but haven’t had this be an issue yet.

And yes, I’ll look into making it a function and printing statements for the variables.
I’ve had minimal instruction with Processing and appreciate any advice.