17.12.2016, 15:58
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. } |