⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 franuni.cwp.lib

📁 su 的源代码库
💻 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 + -