C ++ TR1: como usar o normal_distribution?

Estou tentando usar oC ++ STD TechnicalReport1 extensões para gerar números seguindo uma distribuição normal, mas este código (adaptado deEste artigo):

mt19937 eng;
eng.seed(SEED);

normal_distribution<double> dist;
// XXX if I use the one below it exits the for loop
// uniform_int<int> dist(1, 52);

for (unsigned int i = 0; i < 1000; ++i) {
  cout << "Generating " << i << "-th value" << endl;
  cout << dist(eng) << endl;
}

imprime apenas 1 mensagem de log "Gerando ..."nunca sai do loop for! Se eu usar a distribuição que comentei, ela termina, então estou me perguntando o que estou fazendo de errado. Qualquer ideia?

Muito obrigado!

questionAnswers(4)

yourAnswerToTheQuestion