[LON-CAPA-users] Choosing m elements out of n in an array
H. K. Ng
lon-capa-users@mail.lon-capa.org
Sun, 27 Feb 2005 12:21:50 EST
On Sun, 27 Feb 2005 14:37:28 +0200 "Guy Ashkenazi" wrote:
> >> 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);
That is the old capa way.
hk