浅析C语言中的随机数问题  被引量:6

Brief analysis of random number question in C language

在线阅读下载全文

作  者:李柯景[1] 

机构地区:[1]长春大学 计算机科学技术学院,吉林长春130022

出  处:《长春大学学报》2008年第6期64-68,共5页Journal of Changchun University

摘  要:介绍了C语言程序设计教学过程中遇到的随机数问题。C语言中可产生随机数的相关函数有四种,它们分别为rand、srand、random和randomize。本文阐述了四种函数的区别及应用,并总结了产生不同范围内随机数的方法。This paper introduces random number question in the C language teaching process. There are four kinds of random number function in C language. They are rand, srand, randomand and randomize. This article elaborates the differences and the application of these functions,and summarizes the method of the different scope of random number.

关 键 词:随机数 伪随机数 种子 随机数生成器 

分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象