title: Random sampling in pyspark with replacement
body: <p>I have a dataframe df with 9000 unique ids.</p>
  
  <p>like </p>
  
  <pre><code>| id |
    1 
    2 
  </code></pre>
  
  <p>I want to generate a random sample with replacement these 9000 ids 100000 times. 
  How do I do it in pyspark</p>
  
  <p>I tried </p>
  
  <pre><code>df.sample(True,0.5,100)
  </code></pre>
  
  <p>But I do not know how to get to 100000 number exact</p>