Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThe problem is that he is using `std::random_device` to seed the Mersenne Twister on _every_ run, which will (essentially) never have reproducible effects. He can indeed use another PNRG that does not need a warmup phase but he still cannot generate a new seed on every run. He must generate the seed once and store it somewhere between runs to achieve reproducibility. It does not need to be a strong seed, obviously.
      singulars
    2. CO@AndréNeves: I don't think the questioner wants a new seed on every run. He wants `M` distinct seeds that (a) are the same on every run; but (b) unlike the values `1 ... M` that he's currently using, are not weak seeds for MT. The question states that he is *not* currently using the `random_device` code. He is currently seeding a MT with a small integer, and the `random_device` code is a proposal that he found on a different SO question, that isn't suitable for him.
      singulars
    3. COOk, I thought he was considering using the above snippet. Anyways, I do understand he wants to have `M` sets of seeds and if he wants to use decent seeds he can use the `random_device` without any problem, he simply has to store it for each dataset. One "cheap" way I remember for not using a strong seed and not havng to store it but still be relatively random is to use a hash of the dataset (or some part) as a seed for the MT (or other PNRG). This way he wouldn't need to store it as it would be deterministic for each dataset.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload