[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TRNSYS-users] Error compiling fortran using rnd and randomize and generating numbers with normal distribution
Dear João
1. Error
using rnd and randomize
I included in a fortran program the
following code :
Randomize
factor=Int((Lim_superior-Lim_inferior+1)*rnd+Lim_inferior)
The FORTRAN command for generating a random number is either RAN
or RAND.
2.
Generating random numbers with normal distribution
I need to create a type that
generate a random number between two limits with normal
distribution.
Does anybody can help me ? How to do it with Compaq fortran
?
If you have the TESS Utility Library, Type578 generates a random number
between limits drawn from a normal distribution. Type577 does the same
but from a uniform distribution.
Kind regards,
David
****************************************************************************************
Thermal Energy System Specialists (TESS), LLC
David
BRADLEY
2916 Marketplace Drive - Suite 104
Partner
Madison, WI 53719
Phone: (608) 274-2577 USA
Fax: (608) 278-1475
E-mail: bradley@tess-inc.com
Web Pages:
http://www.tess-inc.com
and
http://www.trnsys.com
"Providing software solutions for today's energy engineering
projects"
****************************************************************************************