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


Hi!

RandomSample would do the job.
(http://reference.wolfram.com/mathematica/ref/RandomSample.html)

Kind regards,
Thomas


Am Freitag, 18. Januar 2013 06:50:44 UTC+1 schrieb BenT:
> Consider the following:
> 
> 
> 
> ril[range_Integer]:= RandomInteger[{1,range},range]
> 
> 
> 
> This function is almost what I want; but I need one which doesn't include any repeated values. This is intended for use, for example, for a card deck, or dice, etc.



  • Prev by Date: Re: Question about PlotRange
  • 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
  • Next by thread: Re: Needing a Random List of Non-repeating Values whose Range and Length