i have this function
//Random Number
//-------------
static int RandomNum(int LoLim, int HiLim)
{
Random random = new Random();
return random.Next(LoLim,HiLim);
}
which is used like 3 or 4 times in this lottery thing. it works in Debugging but when i just run it regularly it gives me the same number.
i've read some stuff about how i'm supposed to initiate the random outside the main thing, but i'm not sure how to do that with a function.