Difference between revisions of "ReturnRandomVector"

From scripting
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 19:56, 24 April 2017

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.