- Home /
Question by
HasTeroiDe · May 26, 2020 at 04:00 PM ·
random.rangevaluesconstructor
How to create random values at each instantiation of a class ?
I know that we cannot use the Random class in the constructor of a class, but I would like that with each instantiation of the class the values are random therefore how I make to draw random values with each instantiation of class. For example I have a monster class and I would like that each time I create a monster it has statistics different from other monsters. Thank you for helping me.
Comment