title: How to generate a DataFrame with random content and N rows?
body: <p>How can I create a Spark DataFrame in Scala with 100 rows and 3 columns that have random integer values in range (1, 100)?</p>
  
  <p>I know how to create a DataFrame manually, but I cannot automate it:</p>
  
  <pre><code>val df = sc.parallelize(Seq((1,20, 40), (60, 10, 80), (30, 15, 30))).toDF("col1", "col2", "col3") 
  </code></pre>