Duplicate Vector Correct

Working version to duplicate a vector of random values