📄 franuni.cwp.lib
字号:
FRANUNI - Functions to generate a pseudo-random float uniformly distributed on [0,1); i.e., between 0.0 (inclusive) and 1.0 (exclusive)franuni return a random floatsranuni seed random number generatorFunction Prototypes:float franuni (void);void sranuni (int seed);franuni:Input: (none)Returned: pseudo-random floatsranuni:seed different seeds yield different sequences of random numbers.Notes:Adapted from subroutine uni in Kahaner, Moler, and Nash (1988). This book references a set of unpublished notes byMarsaglia.According to the reference, this randomnumber generator "passes all known tests and has a period that is ...approximately 10^19".References:Numerical Methods and Software", D. Kahaner, C. Moler, S. Nash,Prentice Hall, 1988. Marsaglia G., "Comments on the perfect uniform random number generatorUnpublished notes, Wash S. U.Author: Dave Hale, Colorado School of Mines, 12/30/89
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -