I need to generate a lot of random numbers in a lot of different instances of a certain class. Is it a bad habit to just make a single static Random and use it for all the instances of that class? Or should I make a new instance of the Random class each time a new object is created? What would be the best approach to this?
Aucun commentaire:
Enregistrer un commentaire