Path: news.mathworks.com!not-for-mail
From: "Ulrik Nash" <uwn@sam.sdu.dk>
Newsgroups: comp.soft-sys.matlab
Subject: Drawing n random numbers from vector without replacement
Date: Thu, 8 Jul 2010 08:05:06 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <i140ri$1h$1@fred.mathworks.com>
Reply-To: "Ulrik Nash" <uwn@sam.sdu.dk>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1278576306 49 172.30.248.37 (8 Jul 2010 08:05:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 8 Jul 2010 08:05:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2106050
Xref: news.mathworks.com comp.soft-sys.matlab:651320

Hi Everyone,

Suppose I wish to draw 2 numbers at random without replacement from vector A

A = [1 2 3 4 5 6 7 8 9 10]

Which command will let me do this in Matlab?

Best,

Ulrik.