public double[] drawTransitionTimes(double timeDuration,int totalNumberOfChanges){
  double[] times=new double[totalNumberOfChanges];
  for (int i=0; i < totalNumberOfChanges; i++) {
    times[i]=timeDuration * MathUtils.nextDouble();
  }
  if (times.length > 1) {
    Arrays.sort(times);
  }
  return times;
}

public double [ ] drawTransitionTimes ( double timeDuration , int totalNumberOfChanges ) { double [ ] times = new double [ totalNumberOfChanges ] ; for ( int i = 0 ; i < totalNumberOfChanges ; i ++ ) { times [ i ] = timeDuration * MathUtils . nextDouble ( ) ; } if ( times . length > 1 ) { Arrays . sort ( times ) ; } return times ; }
simulate transition times , uniformly distributed before sorting
