Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!u20g2000vbq.googlegroups.com!not-for-mail
From: Greg Heath <heath@alumni.brown.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: choosing a number at random
Date: Wed, 11 Nov 2009 16:22:02 -0800 (PST)
Organization: http://groups.google.com
Lines: 13
Message-ID: <fb8b68c6-e7c1-4689-bc47-8e5f3dae9be3@u20g2000vbq.googlegroups.com>
References: <hd57r0$8c2$1@fred.mathworks.com> <VBpJm.18763$Wd1.2960@newsfe15.iad> 
	<AGpJm.18810$Wd1.2254@newsfe15.iad> <hdekkv$t3s$2@fred.mathworks.com>
NNTP-Posting-Host: 69.141.163.135
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257985323 22437 127.0.0.1 (12 Nov 2009 00:22:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 12 Nov 2009 00:22:03 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: u20g2000vbq.googlegroups.com; posting-host=69.141.163.135; 
	posting-account=mUealwkAAACvQrLWvunjg50tRAnsNtJR
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
	2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:584395


On Nov 11, 10:18 am, Peter Perkins
<Peter.Perk...@MathRemoveThisWorks.com> wrote:
> 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.

Does rand ever generate 0 or 1?

Greg