Mar-07-2020, 07:09 PM
Quote:So random() is just a placeholder, in my program it is an object that creates different instances. Of course I don't want to copy 1 object 10 times but create 10 different instances of it.
That's really a different question. Are you asking how to create a list of 10 instances of a class?