How to get a random delay time

i am trying to get a random delay time but can't figure out how. Any help?

delay(random(minDelay, maxDelay)); Declare minDelay and maxDelay to suit the range of delay periods that you want in milliseconds.

better use the blink with delay technique and calculate the interval as random value.