MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Quick Question

  • To: mathgroup at
  • Subject: [mg78104] Re: Quick Question
  • From: chuck009 <dmilioto at>
  • Date: Sat, 23 Jun 2007 07:03:35 -0400 (EDT)

Here's one way.  Probably can condense it down to a one-line command using short-cut commands:

<< DiscreteMath`Combinatorica`

mylist = {a, b, c, d, e, f, g}

indexlist = RandomPermutation[Length[mylist]]

newlist = Table[mylist[[indexlist[[i]]]], {i, 1, Length[mylist]}]

  • Prev by Date: Re: Re: Reproducible crash in version 6
  • Next by Date: Re: Quick Question
  • Previous by thread: Re: Quick Question
  • Next by thread: Re: Quick Question