Path: news.mathworks.com!not-for-mail
From: "Jason " <j_henderson44@REMOVEhotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Uniform distribution
Date: Thu, 17 Apr 2008 08:56:01 +0000 (UTC)
Organization: Fluid Gravity Engineeing Ltd
Lines: 22
Message-ID: <fu73b1$gc9$1@fred.mathworks.com>
Reply-To: "Jason " <j_henderson44@REMOVEhotmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1208422561 16777 172.30.248.35 (17 Apr 2008 08:56:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 17 Apr 2008 08:56:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 992326
Xref: news.mathworks.com comp.soft-sys.matlab:463552



Hello,

I am currently doing some stats in MATLAB. 

I've been using 

R = normrnd(mean,sigma,[100 1])

to generate 100 random numbers from a normal distribution
with "mean" and standard deviation "sigma". 

I now want to do the same for a uniform distribution. 

Is is the case that 

R = unifrnd(A.B, [100 1])

is what I should use. Are A and B are the lower and upper
ranges. The help isn't to specific but I'm assuming this is
the case.

Thanks