Well, you say the chances on getting 1 and the chances on getting 2. So if the number below says 1, then you get that one. THE TWO NUMBERS MUST ADD UP TO 100 or less.
FINALLY I HAVE FIXED THE BUG.