MathGroup Archive 2009

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

Search the Archive

Re: Random choice

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99836] Re: Random choice
  • From: dh <dh at metrohm.com>
  • Date: Fri, 15 May 2009 06:25:51 -0400 (EDT)
  • References: <guj8ef$hv6$1@smc.vnet.net>


Hi Valeri,

the magic word is: RandomSample.

Daniel





Valeri Astanoff wrote:

> Good day,

> 

> Given this example :

> 

> In[1]:= RandomChoice[Range[500], 100] // Union // Length

> 

> Out[1]= 91

> 

> what is the best way to get *exactly* 100 different

> random numbers ranging from 1 to 500 ?

> 

> Any piece of advice would be appreciated.

> 

> --

> 

> Valeri Astanoff

> 




  • Prev by Date: Re: FinancialData and disjoint result sets from range and
  • Next by Date: Re: Random choice
  • Previous by thread: Re: Re: Random choice
  • Next by thread: Re: Random choice