[LON-CAPA-users] Choosing m elements out of n in an array
   
    Guy Albertelli II
     
    lon-capa-users@mail.lon-capa.org
       
    Sun, 27 Feb 2005 12:34:08 -0500 (EST)
    
    
  
Hi Guy,
> > >> Question for Guy - is there a difference between using
> > >> &random_permutation() and &map() ?
> > >
> > > Nope.
> > 
> > I just looked at the documentation of &map, where it says to use @Z = 
> > &map($seed,\@a)
> > Is the backslash before @a necessary? &random_permutation doesn't need 
> > that.
> 
> Yes, it is necessary for &map. You can also call 
> 
> &map($seed,\@a,\@returned_array);
Hrrm, taking a look at things, I could make @Z=&map($seed,@a); work.
But it likely isn't really worth doing....
-- 
guy@albertelli.com  LON-CAPA Developer  0-7-2-9-