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.


+5 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 old_CSC201 by (8 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 (8 points)