title: Python 3.x - determining when a loop stops with two variables?
body: <p>I want a loop to continue, an only stop the moment one of the variables reaches a value of 0, but I'm having troubles doing so. I thought a while loop would be perfect for this, but the best I have come up with thus far is:</p>
  
  <pre><code>    import random
      min = 1
      max = 6
      number = 10
      number2 = 20
      while number &gt; 0 or number2 &gt; 0:
              number = number - random.randint(min, max)
              number2 = number2 - random.randint(min, max)
              print(number)
              print(number2)
  </code></pre>
  
  <p>I mean, there is a possibility in this structure that 'number2' will get really good rolls, and reach 0 before 'number.' but it is unlikely. Yet the while loop always stops ONLY when 'number2' reaches 0 or under.</p>