Add ranges to rand vector function.
Update test function to use random vectors.