Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

Re: Needing a Random List of Non-repeating Values whose Range and Length

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129513] Re: Needing a Random List of Non-repeating Values whose Range and Length
  • From: svkeeley at aol.com
  • Date: Sat, 19 Jan 2013 01:15:49 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <kdanrk$3ec$1@smc.vnet.net>

Try RandomSample[{list},n], which gives n samples from a list or a range without replacement (each element can only be used once).

I've tried to respond to this a couple of times, and my reply never showed up. So if this message shows up duplicated, that's why.



  • Prev by Date: Re: Prime numbers and primality tests
  • Next by Date: Re: Needing a Random List of Non-repeating Values whose
  • Previous by thread: Re: Needing a Random List of Non-repeating Values whose Range and Length
  • Next by thread: Re: Needing a Random List of Non-repeating Values whose Range and Length