global proc Dup_Pyr()
{ 
  
  
int $dupX =  getSliderValue_dupX();
int $dupZ =  getSliderValue_dupZ();
// Create the master sphere
string $parray[] = `ls "cl_pryUnite*"`;
string $list[];
int        $n = 0;
for($x = 0; $x < $dupX; $x++) {
    for($z = 0; $z <$dupZ; $z++) {
        $inst = `instance`;
        $list[$n] = $inst[0];
        move (rand(1,5) * $x) 0 ((rand(1,5))* $z);
        $n++;
        }
        }
  
select $list;
group -name dup;
  
}