#include <iostream>
#include <random>
int main()
{
for( int i = 0 ; i < 10 ; ++i )
{
int seed ; std::cout << "seed? " ; std::cin >> seed ;
std::seed_seq seq( { seed, seed*3+1, seed+101, seed*7+57, seed*11+201 } ) ;
std::mt19937 gen(seq) ;
std::uniform_int_distribution<int> dist( 1, 1000000 ) ;
for( int j = 0 ; j < 10 ; ++j ) std::cout << dist(gen) << ' ' ;
std::cout << '\n' ;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8cmFuZG9tPgoKaW50IG1haW4oKQp7CiAgICBmb3IoIGludCBpID0gMCA7IGkgPCAxMCA7ICsraSApCiAgICB7CiAgICAgICAgaW50IHNlZWQgOyBzdGQ6OmNvdXQgPDwgInNlZWQ/ICIgOyBzdGQ6OmNpbiA+PiBzZWVkIDsKICAgICAgICBzdGQ6OnNlZWRfc2VxIHNlcSggeyBzZWVkLCBzZWVkKjMrMSwgc2VlZCsxMDEsIHNlZWQqNys1Nywgc2VlZCoxMSsyMDEgfSApIDsKICAgICAgICBzdGQ6Om10MTk5MzcgZ2VuKHNlcSkgOwogICAgICAgIHN0ZDo6dW5pZm9ybV9pbnRfZGlzdHJpYnV0aW9uPGludD4gZGlzdCggMSwgMTAwMDAwMCApIDsKICAgICAgICBmb3IoIGludCBqID0gMCA7IGogPCAxMCA7ICsraiApIHN0ZDo6Y291dCA8PCBkaXN0KGdlbikgPDwgJyAnIDsKICAgICAgICBzdGQ6OmNvdXQgPDwgJ1xuJyA7CiAgICB9Cn0K