ReturnRandomVector
From scripting
global proc vector returnRandomVector(float $Lower, float $Higher) { //Author Nick Pisca 0001d 2009 float $XVal = rand($Lower, $Higher); float $YVal = rand($Lower, $Higher); float $ZVal = rand($Lower, $Higher); vector $CAPVec = <<$XVal, $YVal, $ZVal>>; return $CAPVec; }
More information on vectors and vector mathematics, read pages 14-16, 20-21 in YSYT.