Re: Needing a Random List of Non-repeating Values whose Range and Length
- To: mathgroup at smc.vnet.net
- Subject: [mg129507] Re: Needing a Random List of Non-repeating Values whose Range and Length
- From: buxi at gmx.at
- Date: Sat, 19 Jan 2013 01:13:49 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <kdanrk$3ec$1@smc.vnet.net>
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.