Spark DataFrame - Select n random rows : <p>I have a dataframe with multiple thousands of records, and I'd like to randomly select 1000 rows into another dataframe for demoing. How can I do this in Java? </p>

<p>Thank you!</p>
