[LON-CAPA-users] Choosing m elements out of n in an array
Guy Albertelli II
Sun, 27 Feb 2005 12:34:08 -0500 (EST)
> > >> 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
Hrrm, taking a look at things, I could make @Z=&map($seed,@a); work.
But it likely isn't really worth doing....
email@example.com LON-CAPA Developer 0-7-2-9-