RE: randomizing two dimensional array

2004-06-10 Thread N, Guruguhan \(GEAE, Foreign National, EACOE\)
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

Re: randomizing two dimensional array

2004-06-10 Thread Wiggins d Anconia
> 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? > Which array, the inner or outer? perldoc -q 'shuffle an array randomly' http://danconia.org -- To unsubscribe, e-mail: [