Creates this org.apache.spark.util.Vector of given length containing random numbers between 0.
Creates this org.apache.spark.util.Vector of given length containing random numbers between 0.0 and 1.0. Optional scala.util.Random number generator can be provided.