ReturnRandomVector

From scripting
Revision as of 19:56, 24 April 2017 by Nickpisca (talk | contribs) (Created page with " global proc vector returnRandomVector(float $Lower, float $Higher) { //Author Nick Pisca 0001d 2009 float $XVal = rand($Lower, $Higher); float $YVal = rand($Lower, $Higher...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.