title: How to generate random numbers with specific probabilities in python?
body: <p>For example, </p>
  
  <p>Try to generate a list of 1000 random numbers with only <code>0 and 1</code>.</p>
  
  <p>s.t.</p>
  
  <p><code>0 has the prob of 40%</code></p>
  
  <p><code>1 has the prob of 60%</code></p>
  
  <p>thanks!</p>