Using the C++11 #include<random>
or Boost C++ Boost.Random
is it possible to use one seed to start the random number generator at an arbitrary sequence in that you can choose?.
In other words I want to be able to specific where in the sequence the number generator starts, while using the same seed.
For example if i'm using the mt19937
generator with a length of cycle 2^19937-1
I would like to start generating random numbers at a user specified position in the length of the cycle. Say I pick 1000, the generator will start at the 1000th position in the length of the cycle.
X
, given.seed(X)
for operation A i want to start at the beginning of the cycle , and for operation B i want to start at the 100,000th position of the cycle. Both A and B used the same seed and generator. – pyCthon