rand.3f

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3F 代码 · 共 44 行

3F
44
字号
.\" SCCSID: @(#)rand.3f	8.1	9/11/90.TH rand 3f VAX "" Unsupported.SH Namerand, drand, irand \- return random values.SH Syntax.B function irand (iflag).sp 1.B function rand (iflag).sp 1.B double precision function drand (iflag).SH Description.NXR "rand subroutine (FORTRAN)".NXR "drand subroutine (FORTRAN)".NXR "irand subroutine (FORTRAN)".NXR "random number generator"These functions use .MS rand 3to generate sequences of random numbers.If.I iflagis '1',the generator is restarted and the first random value is returned.If.I iflagis otherwise nonzero, it is used as a new seed for the random numbergenerator, and the first new random value is returned..SH RestrictionsThe algorithm returns a 31-bit quantity on the VAX..SH Return ValuesThe.PN irandsubroutinereturns positive integers in the range 0 through 2147483647.The.PN randand.PN drandsubroutines return values in the range 0. through 1.0..SH Files.ie \nM /usr/ucb/lib/libF77.a.el /usr/lib/libF77.a.SH See Alsorand(3)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?