Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Random number generation
Date: Sat, 14 Mar 2009 17:01:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 2
Message-ID: <gpgnsd$3kc$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1237050061 3724 172.30.248.37 (14 Mar 2009 17:01:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 14 Mar 2009 17:01:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 816492
Xref: news.mathworks.com comp.soft-sys.matlab:524883

Hi, everyone I'm new to Matlab and I need help...
I need to generate random number i bounds for example [-1, 50], and need to generate and floating number in bound but with some precision, for example 4 digits after point [-0.1236 125.1020]. I have to write function and when i pass precision and LB , RB to return vector with rand float numbers and have to write the same function but working with real numbers. Thanks... can some one help me ?