Add a column to an existing dataframe with random fixed values in Pyspark
<p>I'm new to Pyspark and I'm trying to add a new column to my existing dataframe. The new column should contain only 4 fixed values (e.g. <code>1,2,3,4</code>) and I'd like to randomly pick one of the values for each row. </p>

<p>How can I do that?</p>