mercredi 22 avril 2015

uniform_int_distribution using a list instead of a range of values

I've looked up the documentation and examples after trying to run my code but was unable to find a method to feed a list into the uniform_int_distribution. Is this not even possible then?

Does anyone have any suggestions on the best way to randomly pick an item from a given list without using srand() or rand()?

Aucun commentaire:

Enregistrer un commentaire