Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13222 > unrolled thread

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

Started byTomas Garza <tgarza10@msn.com>
First post2013-01-20 06:25 +0000
Last post2013-01-20 06:25 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Needing a Random List of Non-repeating Values whose Tomas Garza <tgarza10@msn.com> - 2013-01-20 06:25 +0000

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

FromTomas Garza <tgarza10@msn.com>
Date2013-01-20 06:25 +0000
SubjectRe: Needing a Random List of Non-repeating Values whose
Message-ID<kdg2l5$hfa$1@smc.vnet.net>
Good, but it is not new in v9. It dates back to v6 (cf. Help browser).
-Tomas

Date: Sat, 19 Jan 2013 00:13:21 -0600
From: brtubb090530@cox.net
To: tgarza10@msn.com
Subject: Re: Needing a Random List of Non-repeating Values whose Range and Length


 
   
 
 
    On 1/18/2013 2:41 PM, Tomas Garza
      wrote:

   
   
     
     
        Have you
          tried RandomSample?
       

         
        -Tomas
         

         

          > From: brtubb090530@cox.net

            > Subject: Needing a Random List of
            Non-repeating Values whose Range and Length

            > To: mathgroup@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.

            >

         
       
     
   
    Thanks. Yes that new v9 function is the solution I needed.  It has
    since been pointed out to me by several others :>)

   

    --
Benjamin Robert Tubb, Finale Music Engraver
Owner of Public Domain Music
Email: brtubb@pdmusic.org
Website: www.pdmusic.org

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web