admin 管理员组文章数量: 1086019
2024年3月27日发(作者:自助发卡网源码免费下载)
1、RANDOM_NUMBER
Syntax ['sintæks] n. 语法
CALL RANDOM_NUMBER (
harvest结果
)
Intrinsic Subroutine(固有子程序):Returns a pseudorandom number greater
than or equal to zero and less than one from the uniform distribution.
返回大于或等于0且小于1,服从均匀分布的随机数
2、RNNOA/ DRNNOA (Single/Double precision)
Generate pseudorandom numbers from a standard normal distribution using
an acceptance/rejection method.
产生服从标准正态分布的随机数
Usage(用法)
CALL RNNOA (NR, R)
Arguments(参数)
NR
— Number of random numbers to generate. (Input) 要产生随机数的个数
R
— Vector of length NR containing the random standard normal deviates.
(Output)
输出长度为NR,随机正态分布的向量
Comments(注解)
The routine RNSET can be used to initialize the seed of the random number
generator. The routine RNOPT can be used to select the form of the generator.
程序RNSET可以用来初始化随机数发生器的种子
Example
In this example, RNNOA is used to generate five pseudorandom deviates from
a standard normal distribution.
INTEGER ISEED, NOUT, NR
REAL R(5)
EXTERNAL RNNOA, RNSET, UMACH
C
CALL UMACH (2, NOUT)
版权声明:本文标题:Fortran常用函数 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1711550938a599532.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论