asp随机读取其中一个手机号函数

function getsj(str)

dim arrstr,n

arrstr=split(str,",")

if ubound(arrstr)>0 then

Randomize

n=Int((ubound(arrstr)+1 - 0) * Rnd + 0)

getsj=arrstr(n)

else

getsj=""

end if

end function

调用方法:<%=getsj("13600000000,18900000000,18900000000")%>

相关文章

数组的定义 Dim MyArray MyArray = Array(1‚5‚123‚12‚98...
\'参数: \'code:要检测的代码 \'leixing:html或者ubb \'n...
演示效果: 代码下载: 点击下载
环境:winxp sp2 ,mysql5.0.18,mysql odbc 3.51 driver 表采...
其实说起AJAX的初级应用是非常简单的,通俗的说就是客户端(j...
<% ’判断文件名是否合法 Function isFilename(aFilename...