You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kotika Does a check need to be added to ensure the user gives a non-zero seed? We could throw std::range_error saying the value has to be [1, UINT32/64_MAX]
For the purposes of generating pseudo-random numbers with this method, one chooses the initial vector u(0), called the “seed”, with at least one non-zero component
(emphasis mine), which seems to imply any restriction should just be on the full four-argument form. The uint64_t overload could be made to never have an invalid value if at least one of the two other arguments were nonzero, I believe.
My question is if the statement "random numbers are statistically independent from any two distinct seeds, e.g. consecutive seeds are ok" remains true in this case.
When the
mixmax
RNG is initialised with a seed of 0 and used withvariate_generator
, repeated calls always produce the same value:Reproducible example (here on godbolt):
Returns:
The text was updated successfully, but these errors were encountered: