Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
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 (1 point)

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 (1 point)