MathGroup Archive 2013

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

Search the Archive

Re: Needing a Random List of Non-repeating Values whose


Have you tried RandomSample?
-Tomas

> From: brtubb090530 at cox.net
> Subject: Needing a Random List of Non-repeating Values whose Range and Length
> To: mathgroup at smc.vnet.net
> Date: Fri, 18 Jan 2013 00:54:13 -0500
>
> 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: Needing a Random List of Non-repeating Values whose Range and Length
  • Next by Date: Can you profile compiled code?
  • Previous by thread: Needing a Random List of Non-repeating Values whose Range and Length
  • Next by thread: Re: Needing a Random List of Non-repeating Values whose