How to create randoms with exceptions
#4

OK, But will this work or not??
Quote:

new rand = Random(5); //1st random result.
new rand2 = Random(5); //2nd random result.
while (rand2 == rand) {
rand2 = Random(5); //continue randoming it until 1st and 2nd results are not same.
}

Reply


Messages In This Thread
How to create randoms with exceptions - by coool - 17.12.2016, 12:44
Re: How to create randoms with exceptions - by Dayrion - 17.12.2016, 12:54
Re: How to create randoms with exceptions - by NaS - 17.12.2016, 15:47
Re: How to create randoms with exceptions - by coool - 17.12.2016, 15:58
Re: How to create randoms with exceptions - by SickAttack - 17.12.2016, 16:07
Re: How to create randoms with exceptions - by NaS - 17.12.2016, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)