title: Spark - scala: shuffle RDD / split RDD into two random parts randomly
body: <p>How can I take a rdd array of spark, and split it into two rdds randomly so each rdd will include some part of data (lets say 97% and 3%).</p>
  
  <p>I thought to shuffle the list and then <code>shuffledList.take((0.97*rddList.count).toInt)</code></p>
  
  <p>But how can I Shuffle the rdd?</p>
  
  <p>Or is there a better way to split the list?</p>