Generates a vector with random components within a specified range. The range is specified by 2 vectors.
fromVec := V3F{12.3, 45.6, 78.9}
toX, toY, toZ := 12.0, 34.0, 15.0
toVec := V3F{toX, toY, toZ}
random1 := fromVec.RandBetween(toVec) // Returns a new random vector
random2 := fromVec.RandBetweenComp(toX, toY, toZ) // Returns a new random vector
rangeVec.RandBetweenInPlace(toVec) // Updates the existing vector with random values
rangeVec.RandBetweenInPlace(toX, toY, toZ) // Updates the existing vector with random values
Generates a vector with random components within a specified range. The range is specified by 2 vectors.