asp.net下生成99个不同的随机数
程序员文章站
2023-11-10 15:05:16
<%@ page language="c#" %> <%@ import namespace="syst...
<%@ 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>
下一篇: asp.net下生成99个不同的随机数