Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: no repeat for rand
Date: Thu, 24 Jul 2008 07:29:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <g69avu$ai0$1@fred.mathworks.com>
Reply-To: "ching l" <chinglnc@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216884542 10816 172.30.248.38 (24 Jul 2008 07:29:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 24 Jul 2008 07:29:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:481429



is it possible to limit rand value so that it doesn't repeat?
Which each of these file is only play one time

a{3} = {audio, fs};

a{4} = {audio, fs};

a{5} = {audio, fs};

wavplay(a{ceil(length(samples)*rand)}{:}) 

Thanks