Improved book random selector.