Basics of AppleScript

Random Value

Script [6.9.1]:

set randomValue to some item of {"success", "failure", "life", "fun"}

Explanation: Using the keyword some item of listName or some item of {list items....}, we can obtain a random value. This random value can be anything from the list. Output will differ, every time you run the script.

Figure 6.9.1

Figure 6.9.1 Random Value