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

MathGroup Archive 2009

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

Search the Archive

Re: Random choice

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99835] Re: [mg99831] Random choice
  • From: Filippo Miatto <miatto at gmail.com>
  • Date: Fri, 15 May 2009 06:25:40 -0400 (EDT)
  • References: <200905150822.EAA18773@smc.vnet.net>

Table[RandomReal[{1,500}],{i,1,100}]

Filippo


On May 15, 2009, at 10:22 AM, 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
>

------------------------------------------------------------
Mobile (IT):	+39 340 6104269
Mobile (NL):	+31 064 3949827
Home (IT): 	+39 0438 59360

Via Scossore, 94
31029 Vittorio Veneto (TV)
italy

msn:			dr.ziofil at hotmail.com
skype:			filippo.miatto
Quantum Optics
Group Mail:		miatto at molphys.leidenuniv.nl


  • References:
  • Prev by Date: Re: Question about filenames for Export[...]
  • Next by Date: Re: Random choice
  • Previous by thread: Random choice
  • Next by thread: Re: Random choice