Move rand so we can initialize vx with a value.