Path: news.mathworks.com!not-for-mail
From: "Jessica " <jandre@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: random number generator from logistic distribution
Date: Tue, 29 Jan 2008 23:33:09 +0000 (UTC)
Organization: University of Tasmania
Lines: 12
Message-ID: <fnod3l$po$1@fred.mathworks.com>
Reply-To: "Jessica " <jandre@mathworks.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1201649589 824 172.30.248.37 (29 Jan 2008 23:33:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 29 Jan 2008 23:33:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 802899
Xref: news.mathworks.com comp.soft-sys.matlab:448221


Hi,
I'm trying to create a random number generator from the 
logistic distribution. Does the following function look 
right or am I completely off track?!

r=lrnd(m,n,mu,sigma)
p=rand(m,n)
r=log(p./(1-p)).*sigma+mu

Thanks for your help

Jess