SPARK-961 Add a Vector.random() method

Added method and testcases