Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: random numbers
Date: Fri, 28 May 2010 02:08:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <htn8i4$92q$1@fred.mathworks.com>
References: <htn43m$3t0$1@fred.mathworks.com> <htn818$6kj$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1275012484 9306 172.30.248.35 (28 May 2010 02:08:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 28 May 2010 02:08:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:640036

"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <htn818$6kj$1@fred.mathworks.com>...
> .......
>  r = diff([0;sort(rand(30,1));1]);
>  ......

  Sorry.  I meant to write

 r = diff([0;sort(rand(29,1));1]);

Roger Stafford