std::shuffle vs std::random_shuffle not making any sense to me

Bad question which cannot be deleted now.
Last edited on
What exacly is wrong. YOu do not use shuffle at all in your code.
Deleted.
Last edited on
static std::mt19937 rng = initialize_twister(1000) ; You are seeding RNG with same number each run. The prime property of all pseudorandom number generators is that they will give you same sequence for same seed.

Seed it with something unpredictable. For example you can use current time as you do not really need high enthropy numbers.
Ok, thanks MiiNiPaa. Dumb mistake.
Last edited on
Topic archived. No new replies allowed.