AppleScript Tutorial Wiki
Advertisement

You can activate the applescript's inbuilt function that elect a random number just by using (random number).

you can also use the syntax (random number from a to b), which will return a random number between a to b. It should be noted that a&b are integers here.

Advertisement