asp.net下生成99个不同的随机数
作者:
asp.net下生成99个不同的随机数
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<script runat=server>
void Page_Load(Object sender , EventArgs e)
{
System.Random random = new Random();
for(int i= 1;i<100;i++)
{
int number=0;
number = random.Next(99999999);
Response.Write(number+"!!!!");
}
}
</script>
<%@ Import Namespace="System.Data.SqlClient" %>
<script runat=server>
void Page_Load(Object sender , EventArgs e)
{
System.Random random = new Random();
for(int i= 1;i<100;i++)
{
int number=0;
number = random.Next(99999999);
Response.Write(number+"!!!!");
}
}
</script>