title: Pyspark - How to get random values from a DataFrame column
body: <p>I have one column in a DataFrame which I need to select 3 random values in Pyspark. Could anyone help-me, please?</p>
  
  <pre><code>+---+
  | id|
  +---+
  |123| 
  |245| 
  | 12|
  |234|
  +---+
  </code></pre>
  
  <p>Desire:</p>
  
  <p>Array with 3 random values get from that column: </p>
  
  <pre><code>**output**: [123, 12, 234]
  </code></pre>