Re: Shuffle problem
- To: mathgroup at smc.vnet.net
- Subject: [mg84982] Re: [mg84960] Shuffle problem
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 22 Jan 2008 01:48:21 -0500 (EST)
- Reply-to: hanlonr at cox.net
RandomSample[{t, t, t, h, h, h}] {t,h,h,t,h,t} Bob Hanlon ---- angela <mpopyft at lycos.com> wrote: > Hi; > > Is there a way to get Mathematica 6.01 to randomly shuffle a list: Is there a built in command that I am blind to? > > For example: > > {t,t,t,h,h,h} would become something like {t,h,h,t,t,h} > > The lists are of arbitrary length. I wrote my own function but it is kind of slow. > > Thanks; > Angela >