asp.net下生成99个不同的随机数
发布时间:2016-12-29 来源:查字典编辑
摘要:voidPage_Load(Objectsender,EventArgse){System.Randomrandom=newRandom()...
<%@PageLanguage="C#"%>
<%@ImportNamespace="System.Data.SqlClient"%>
<scriptrunat=server>
voidPage_Load(Objectsender,EventArgse)
{
System.Randomrandom=newRandom();
for(inti=1;i<100;i++)
{
intnumber=0;
number=random.Next(99999999);
Response.Write(number+"!!!!");
}
}
</script>