samedi 23 avril 2016

Random shared between instances of an object?

I want to create a lot of instances of an object that uses a random number as part of its initialization, but if I make a massive number of these objects in a loop, most of them will be the same (I think). Can someone clarify? And if I'm correct in my assumption, is there a way to have them share a single Random object?




Aucun commentaire:

Enregistrer un commentaire