: 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) {
long longのペアをdoubleにマッピングする必要がありますが、どのハッシュ関数を使用するかはわかりません。実際には通常0と約100の間の数値です(ただし、保証はできません)が、各ペアは任意の2つの数値で構成されます。 Hereは、tr1::unordered_mapです。私は次のように始めました。 typedef long long Int;
typedef std::pair<Int