For best results, you should only create a single instance of Random per app.
So, how do you “create an instance”? Do you have to declare and “new” something? Or, does calling system.random.gaussian, for example, create that instance? If it does, do you create a new instance when you call it again?
Or, do we have a sort of “implicit instance”? If so, how could one possibly have more than one instance? If you can’t. then why the warning?
Many thanks
Jim Wagner
Oregon Research Electronics
I’ll go with your suggestion. That does leave me a bit puzzled about why the LR always refers to System.Random but not enough puzzled to dig much deeper.
System.Random is a convenience method for creating an maintaining a single instance of Random. It takes the burden of maintaining the instance yourself and removes the possibility of you creating multiple instances. If you always use system.random, then you don’t have to sweat the details.