Generate Intervals

Added code to generate random start points for intervals.