mercredi 5 avril 2023

C++ radnom generator simple solution [duplicate]

In my code I have a lot of classes and I want them to do something, based on random number. I found some solutions, which forces me to make some legacy structures and make a lot of actions to simply get random number. Is there some one-line solution to get random number?

I know about BOOST random, rand() and srand() and std::random_device. I want something less complex




Aucun commentaire:

Enregistrer un commentaire