- I'm sorry incase this is a bad question, I'm only working with Pascal because of some computer class homework where we have to draw a picture using Pascal *
I'm basicly trying to draw stars at random locations, the problem I'm facing right now is that when I call the procedure inside a loop only 1-2 stars are being drawn even though the loop runs 1000 times.
I've tried generating one by one by clicking a button, and it worked so I'm assuming it has something to do with Random not properly working inside a loop.
randomize();
i := 0;
while i < 1000 do begin
x := random(Image1.Width);
y := random(Image1.Height);
Ellipse(x, y, x+3, y+3);
i += 1;
end;