Livecode 9.6 Community
I have a little stack in which I need a few (1 to 3) random numbers inserted before some text. I have came up with the following. This is just the initial experiment to generate the needed numbers at random. When I step it through the debugger, it works correctly.
Clicking the button onIy only generates 1 number and no more as it should. I've clicked it enough times it should have changed. Is there something I did not take into consideration?
Code: Select all
on mouseup
get random(3)
put it into x
repeat x times
get random(x)
put it into y
wait 1 sec
put y
end repeat
end mouseup