MathGroup Archive 2009

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

Search the Archive

Random choice

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99831] Random choice
  • From: Valeri Astanoff <astanoff at gmail.com>
  • Date: Fri, 15 May 2009 04:22:29 -0400 (EDT)

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: Focus ring for controls
  • Next by Date: Re: Heatmap
  • Previous by thread: Re: Re: second simple problem - Follow-up
  • Next by thread: Re: Random choice