[TRNSYS-users] Error compiling fortran using rnd and randomize and generating numbers with normal distribution
    David Bradley 
    bradley at tess-inc.com
       
    Tue Jun 27 07:53:14 PDT 2006
    
    
  
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 at tess-inc.com
Web Pages:  http://www.tess-inc.com     and      http://www.trnsys.com
"Providing software solutions for today's energy engineering projects"
****************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20060627/820d5a16/attachment-0001.htm>
    
    
More information about the TRNSYS-users
mailing list