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 ]
svkeeley@aol.com

Posts: 9
Registered: 12/27/12
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

Try RandomSample[{list},n], which gives n samples from a list or a range without replacement (each element can only be used once).

I've tried to respond to this a couple of times, and my reply never showed up. So if this message shows up duplicated, that's why.




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

[Privacy Policy] [Terms of Use]

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