Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Randomization_same number
Date: Fri, 6 Nov 2009 21:26:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <hd249a$im2$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1257542762 19138 172.30.248.38 (6 Nov 2009 21:26:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Nov 2009 21:26:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1507699
Xref: news.mathworks.com comp.soft-sys.matlab:583128


Hi all,

I am trying to present 4 different numbers 120 times in a vector, in a randomized order. But the thing is that I try to avoid repeating the same number twice in a row, and in the same time to keep the repetition frequency of each number the same (= 30). 

Do you have any ideas? 

Thanks