Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Quick Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78104] Re: Quick Question
  • From: chuck009 <dmilioto at comcast.com>
  • 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