Random delays when turning on or off devices

Is it possible to use Random delays when turning on or off devices ?