Re: Slow code


Deivy Petrescu
 

Brian,
not to compete in time, but if you want to generate random serial “numbers” then a much simpler approach would be to use
————
set lista to {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, "A", "B", 4, "C", "D", "E", "F"}

set codes to {}
repeat 10000 times
set code to ""
repeat with j from 1 to 28
set code to code & some item of lista
if j mod 4 = 0 and j ≠ 28 then set code to code & "-"
end repeat
set end of codes to code
end repeat
————



Deivy Petrescu
applescript@dicas.com

Join applescript@apple-dev.groups.io to automatically receive all group messages.