sample_time function

Draw a sample of n random times (from a given range).