MathGroup Archive 2001

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

Search the Archive

Re: Random Sampling Without Replacement?


Try the following:

<<DiscreteMathematics`Combinatorica`
Take[RandomPermutation[n],3]

where n is the size of the list you are selecting from.  regards,  RF

>>> "A. E. Siegman" <siegman at stanford.edu> 01/09/01 12:52AM >>>
Looking for neat compact way to extract three distinct (i.e., nonequal) 
randomly selected integers k1, k2, k3 from the range 1 to N (N > 3) -- 
in other words, random sampling without replacement -- ???




  • Prev by Date: Re: Random Sampling Without Replacement?
  • Next by Date: Re: Random Sampling Without Replacement?
  • Previous by thread: Re: Random Sampling Without Replacement?
  • Next by thread: Re: Re: Random Sampling Without Replacement?