Randomize ical event start times
I found the answer googling for applescript make start time random.

I used the following code from this apple support community thread:

tell application "TextEdit"
launch
repeat
delay (random number from 2 to 8)
set textToType to "text" &amp; some item of {"hello", "goodbye"} &amp; text
end repeat
end tell




and for text:

some item of {"blue", "red"}




Here is the final script that worked for me:

tell application "iCal"

    set myCal to "Scheduled tasks"
    activate
    set allEvents to every event in calendar myCal
    repeat with anEvent in allEvents
        set modTime to (random number from 0 to 30)
        display dialog modTime with title start date of anEvent as text
        set newStartTime to (start date of anEvent) + modTime * minutes
        set start date of anEvent to newStartTime
        set (end date of anEvent) to ((end date of anEvent) + modTime * minutes)
    end repeat
end tell