Hi!
I am stuck in a problem which requires generation of 7 integer random numbers between 0 to 12, and store it in the 7 different variables.....what i want to do is all those 7 variable have distinct or unique values or the random numbers assigned to the variables must not repeat........
Secondly, I have to store a 3 digit random number between -999 to 999... now i dont want numbers between -99 to 99 so please suggest me alternative method if there exist....
Code:do { a=aRan.Next(-999,999); }while(a>=-99 && a<=99);




Reply With Quote