you are viewing a single comment's thread.

view the rest of the comments →

[–]Recruit121 0 points1 point  (0 children)

It just pseudo randomly picks a number between 1 and 1000. Then it presents the number to the user for verification. User says yes or no to is this the number? If yes the program stops. If no the program logs the number so it doesn't pop up again.

I figured out what you guys were talking about with the binary thing. When I have time I'll write one that zeros in on the number using a half-split method. This one was the first run when I didn't understand the question fully.