首页 | 本学科首页   官方微博 | 高级检索  
     检索      

浅析C语言中的随机数问题
引用本文:李柯景.浅析C语言中的随机数问题[J].长春大学学报,2008,18(6):64-68.
作者姓名:李柯景
作者单位:长春大学 计算机科学技术学院
摘    要:介绍了C语言程序设计教学过程中遇到的随机数问题。C语言中可产生随机数的相关函数有四种,它们分别为rand、stand、random和randomize。本文阐述了四种函数的区别及应用,并总结了产生不同范围内随机数的方法。

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

Brief analysis of random number question in C language
LI Ke-jing.Brief analysis of random number question in C language[J].Journal of Changchun University,2008,18(6):64-68.
Authors:LI Ke-jing
Institution:LI Ke-jing ( Computer Science and Technology Instiute, Changchun University, Changchun 130022, China)
Abstract: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.
Keywords:random number  pseudo random number  seed  random number generator
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号