updating randomVector