mardi 18 juin 2019

Generating a random uint64_t

Given a random number engine e of type E (of the type defined in <random>), how can I generate a some random uint64_t over their full range?

The engine e should remain useful after this (so for example move-constructing a std::independent_bits_engine doesn't seem like a good idea).




Aucun commentaire:

Enregistrer un commentaire