Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Needing a Random List of Non-repeating Values whose Range and Length
Replies: 3   Last Post: Jan 19, 2013 1:14 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1,416
Registered: 4/8/06
Re: Needing a Random List of Non-repeating Values whose Range and Length
Posted: Jan 19, 2013 1:14 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 2013-01-18 05:50:44 +0000, brtubb090530@cox.net said:

> 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.

The subject line is cut off. Please do not put the question in the
subject *only*.

>From the body of your message it looks like you want a random
permutation of Range[range] which can be computed using

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.