Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+3 votes

I thought I followed the strategy in the lab directions to generate random x,ys through the conditional, but I'm only seeing one sprinkle. Why?

asked in CSC201 by (9.6k points)

1 Answer

+1 vote

Since every sprinkle needs its own coordinates, all of the code beginning with generating the random x/y values through the conditional to test whether to draw that sprinkle needs to be in the loop.

answered by (9.6k points)
...