asp.net下生成99个不同的随机数
时间:2021-07-01 10:21:17
帮助过:42人阅读
<%@ 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>