This paper proposes a new methodology to schedule activities in projects with stochastic activity durations. The main idea is to determine for each activity an interval in which the activity is allowed to start its processing. Deviations from these intervals result in penalty costs. We employ the Cross-Entropy methodology to set the intervals so as to minimize the sum of the expected penalty costs. The paper describes the implementation of the method, compares its results to other heuristic methods and provides some insights towards actual applications. Keywords Stochastic project scheduling problem · Cross-entropy · Intervals · Gates · Flexible commitment