org.apache.spark.storage
Get a random sample of size m from the elems
number of samples needed
random number generator
a random list of size m. If there are fewer than m elements in elems, we just randomly shuffle elems