We present a Monte Carlo technique for sampling from thecanonical distribution in molecular dynamics. The method is built uponthe Nosé-Hoover constant temperature formulation and the generalizedhybrid Monte Carlo method. In contrast to standard hybrid Monte Carlo methodsonly the thermostat degree of freedom is stochastically resampled during a Monte Carlo step.