LeeBlog

导航

2011年4月21日 #

如何产生各种随机数

摘要: 产生int型随机数#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<time.h>int main( ){ //freopen( "1.in","r",stdin ); //freopen( "3.out","w",stdout ); srand( time( NULL ) ); int t,n = 10 ; while( n-- ) { printf 阅读全文

posted @ 2011-04-21 19:34 LeeBlog 阅读(1649) 评论(0) 推荐(0) 编辑