设为首页
加入收藏
站内地图
旧版入口
当前位置:首页 > 站长学院 > 网络编程 > ASP

ASP中一个用VBScript写的随机数类

作者:佚名 出处:网络转载 时间:11-28 点击:

内容载入中...
演示:
62741618583286538060230833491782217116995395533922514376575829327214661252945029762855211007127772633066757355648498453442968626355802259334956947914666267937531021616356734983608565998581399365657412091167684
<%

	'**************************************************************************

	' CLASS: cRandom

	'	Calls randomize to seed the random number generator.

	'	Provides functions for returning ranged random integers or arrays of

	'	ranged random integers.

	'**************************************************************************

	class cRandom

	

		' Calling randomize to seed the random number generator at the time the 

		' class is created seemed like a reasonable thing to do.

		private sub Class_Initialize()

			' Check the VBScript documentation for the specifics relating

			' to the Randomize function

			Randomize

		end sub

		

		' Terminate doesn't need to do anything for this class		  
				
				
				
			
收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口