H
hande
Hi, I wrote a program with two threads playing a number guessing game.
one thread pick a number the other try to guess it. Also first thread
say try a lower or higher number. but my program crashes in defining
the bounds for generating random numbers.
For instance the first thread pick 35
the other say 19. he should pick a number bigger than 19. for now
that's ok. now second thread say 60. then first thread say lower
number. but my second thread is not like that. how i can define that
borders?
thanks a lot
one thread pick a number the other try to guess it. Also first thread
say try a lower or higher number. but my program crashes in defining
the bounds for generating random numbers.
For instance the first thread pick 35
the other say 19. he should pick a number bigger than 19. for now
that's ok. now second thread say 60. then first thread say lower
number. but my second thread is not like that. how i can define that
borders?
thanks a lot