Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: random number generation
Date: Wed, 19 Mar 2008 08:20:04 +0000 (UTC)
Organization: Konem Solutions
Lines: 25
Message-ID: <frqibk$skp$1@fred.mathworks.com>
References: <frp525$8i$1@fred.mathworks.com>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.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 1205914804 29337 172.30.248.35 (19 Mar 2008 08:20:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 19 Mar 2008 08:20:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 413701
Xref: news.mathworks.com comp.soft-sys.matlab:457990


"AMMAL " <alanazi@ualberta.ca> wrote in message <frp525
$8i$1@fred.mathworks.com>...
> Hellow everybody,
> 
> I need a hand on how to generate a 100 positive numbers 
> that follow a normal distribution curve (Bell Shape).In 
> otherwords, if i histogram the data, a bell shape will 
be 
> generated. i am not transforming my data, instead, i 
want 
> to generate a posirtive one hundred values that will 
follow 
> a bell shape.
> 
> Thanks,
> Ammal

Hello
I am not sure about the Bell thing, but if you want to 
generate 100 random positive numbers then you can use this
n = 100;
f = ceil(n.*rand(100,1));

HTH
Vihang