just keep a running total

by David

' and divide by the number of points to get an average
SCREEN 13
FOR i = 1 TO 500
x1 = INT(RND * 320) + 1 + x1
y1 = INT(RND * 200) + 1 + y1
PSET (x1 / i, y1 / i), 15
FOR j = 1 TO 30000: NEXT j
PSET (x1 / i, y1 / i), 0
NEXT i

Posted on Mar 21, 2008, 8:10 AM
from IP address 64.28.135.2

Respond to this message   

Goto Forum Home


Response TitleAuthor and Date
*Thanks so much, I knew I was just making it too complicated :)JeremyHopper on Mar 21