Path: news.mathworks.com!not-for-mail
From: Peter Perkins <Peter.Perkins@MathRemoveThisWorks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: choosing a number at random
Date: Wed, 11 Nov 2009 10:18:55 -0500
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <hdekkv$t3s$2@fred.mathworks.com>
References: <hd57r0$8c2$1@fred.mathworks.com> <VBpJm.18763$Wd1.2960@newsfe15.iad> <AGpJm.18810$Wd1.2254@newsfe15.iad>
NNTP-Posting-Host: perkinsp.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1257952735 29820 172.31.57.88 (11 Nov 2009 15:18:55 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 11 Nov 2009 15:18:55 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <AGpJm.18810$Wd1.2254@newsfe15.iad>
Xref: news.mathworks.com comp.soft-sys.matlab:584231


Nasser M. Abbasi wrote:

> opps, you wanted it from 1 to 10, then do
> 
> r = 1+9*rand

Nasser, this is exactly the reason why we added RANDI a couple of releases ago: too easy to slip up.