title: Generate related lists of random number with constraints
body: <p>I have the following code to generate some random numbers:</p>
  
  <pre><code>import random
  random.seed(1)
  
  lambdaj = []
  tauj = []
  
  for i in range(30):
      lambdaj.append(random.randint(2, 15))
      tauj.append(random.uniform(10/365, 40/365))
  
  #What I want is:
  
  for i in range(len(tauj)):
      if lambdaj[i]*tauj[i] &gt;= 1:
          #RECALCULATE lambdaj and tauj by increasing the random.seed by 1
  </code></pre>
  
  <p>So, what I want to do is I want to have some lists of <code>lambdaj</code> and <code>tauj</code>, however, I do not want <strong>related</strong> <code>lambdaj[i]*tau[j] &gt;= 1</code>. They should all be <code>&lt; 1</code>. So, I think, I will need to increment on my seed and let it find some seed value that satisfies my requirement. However, I couldn't come up with a working for loop that does it. Any suggestion is appreciated.</p>