Hello everyone,
Curiously, I wrote a program that you give the computer a number to guess and it loops through random numbers...if the computer finds a match it prints out a message and whatnot. The only problem is, it repeats numbers....so sadly out of 100 possible choices...it could take 394 tries...something which is not cool. So my question is, is it possible (using some built in function perhaps) to have the comp check its newly generated random number with ALL the ones it has called previously, if there's a match, generate new number and so on...if it doesn't match any previously called, use it and so on...Curiously, what if I used an array of all possible choices, is that in the right direction? Any insight into this would be fantastic. Thanks a lot!-Chap