[我的ASP.net学习历程]Random随机函数

类别:Asp 点击:0 评论:0 推荐:

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="gb2312" %>
<script runat="server">

 void Page_Load(Object Sender,EventArgs E){
  Random ObjRandom=new Random();
  Label_1.Text=Convert.ToString(ObjRandom.Next(100));
 }
 
</script>
<asp:label ID="Label_1" runat="server"></asp:label>

本文地址:http://com.8s8s.com/it/it8569.htm