>v.push_back(std::unique_ptr<int>(new int(distribution(twister))));

氏ね