I'm wanting to put a random letter in five separate fields but I'm wanting the fields to be updated simultaneously rather one after another.
I've worked out the code for 'one field after another' but struggling to see how I can get all the fields to update simultaneously.
Not sure if this is possible but grateful for any hints?
Many thanks,
Glenn
Code: Select all
on mouseup
put "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z" into tLetters
set itemdelimiter to ","
sort items of tLetters by random(the number of items of tLetters)
repeat with a = 1 to 5
repeat for each item x in tLetters
sort items of tLetters by random(the number of items of tLetters)
put x into field a
end repeat
end repeat
end mouseup