Guess a random number using binary search

Used binary search to guess a randomly generated number with a given minimum and maximum.