added random vector function