I put a single field, named "fldRandomResults" and extended so that I could see at least six lines of it, and a single button, on a card.
The button had the following script on it:
Code: Select all
on mouseUp
repeat with i = 1 to 6
put 0 into line i of field "fldRandomResults"
end repeat
repeat with i = 1 to 1200
add 1 to line (random(6)) of field "fldRandomResults"
end repeat
end mouseUp
Instead, I get results like this:
Code: Select all
180
179
180
181
179
178
What am I doing wrong?