string $mySel[] = `ls -sl`; //print $mySel; for ($each in $mySel){ float $posX = rand(-1.5,1.5); float $posY = rand(-1.5,1.5); float $posZ = rand(-1.5,1.5); float $scaleX = rand(-1,1); float $scaleY = rand(-1,1); float $scaleZ = rand(-1,1); float $rotX = rand(0,360); float $rotY = rand(0,360); float $rotZ = rand(0,360); select -r $each; move -r $posX $posY $posZ; scale $scaleX $scaleY $scaleZ; rotate $rotX $rotY $rotZ; } select $mySel;