Answer the question
In order to leave comments, you need to log in
Can't generate 3 random numbers, why?
Unable to generate 3 random numbers ( They are always the same ):
num11 = new Random().Next(0, 255);
num12 = new Random().Next(1, 254);
num13 = new Random().Next(2, 253);
Answer the question
In order to leave comments, you need to log in
Everything worked when I changed the code to:
Random random = new Random();
int num11 = random.Next(0, 255);
int num12 = random.Next(0, 255);
int num13 = random.Next(0, 255);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question