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)


本文标签: 正态分布 产生 服从 发卡 自助