Hi All,
          In continuation to my earlier mail I am putting my code here for generating 
the two dimensional array
          foreach $k (0 ..$n_fac-1) {
             for ($i=1;$i<=$N;$i++) {
             $x[$k][$i] = $low[$k] + ($high[$k] - $low[$k])* $random[$i];
             }
          }
I know how to permute the elements of an array defined like @x. What I don't know is 
how to do the permutation for the array defined like the one given above $x[$k][$i]. 

Any help?

Thanks
Guruguhan
 

-----Original Message-----
From: N, Guruguhan (GEAE, Foreign National, EACOE) 
Sent: Thursday, June 10, 2004 6:46 PM
To: Perl Beginners
Subject: randomizing two dimensional array


Hi All,
          I have a two dimensional array built like this $x[$i][$j] inside two for 
loops. I would like to know how can I randomize the elements of this array?

Thanks
Regards
> Guruguhan

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to