For example, if I have a class:
public class Class
{
public Random r;
public Class()
{r= new Random()}
}
and later create two instances of it:
Class a = new Class();
Class b = new Class();
and call r sequentially, the r for both will give the same values. I've read that this is because the default constructor for Random uses the time to provide "randomness," so I was wondering how I could prevent this. Thanks in advance!