That just seems silly, why would people complain about an appropriate number to be used. That's what I actually do in game, or type 99 (common over value). Is there a way to manually set this number? The whole point is for the bot to mimic human behavior, No person is going to sit there typing the same random number for hours. people are lazy and its a good way to get them banned.
EDIT: If the bot can fetch inventory numbers, why not return that value through whatever function you have for pushing keys to the client based on the available number in your inventory, then add a simple randnum(0,2)-1 in the keystroke pushing function to push a key +or - one numeric value higher 5% of the time to simulate missing a key.
Obviously this rant is meant to be constructive, The difference between a human and a bot is the tiny details that shouldn't be overlooked.