Dear All
I am working with Mersenne Twister in the distributed network. In the network I have a different nodes which have different IDs. These IDs are generated by MT. These IDs should be uniform and unique. I am looking for a way to run MT for different nodes or objects which are completely independent.
for example: node 1 has a MT inside and generate one ID.
node 2 has the MT and generate another ID.
I am wondering if anyone could help me?
Best,
Ameneh
Thanks. I have another question, uniform random number needs the uniform seeds or not.
Do we have a rule or some properties for seeds?
Or, seeds can be any thing without restriction?
> I have another question, uniform random number needs the uniform seeds or not.
I don't quite understand the question. Could you elaborate?
> Do we have a rule or some properties for seeds?
> Or, seeds can be any thing without restriction?
In general, a seed sequence that eliminates statistical bias should be used.
For engines with a fair amount of internal state (large entropy), std::seed_seq comes in handy. http://en.cppreference.com/w/cpp/numeric/random/seed_seq
Random number engines (like std::mt19937) are required to generate integer sequences with a uniform distribution. The seeds need not be uniformly distributed for that.