读书人

怎么实现随机数脚本语言用c

发布时间: 2012-03-07 09:13:51 作者: rapoo

如何实现随机数脚本语言用c#
如何实现随机数脚本语言用c#

[解决办法]
http://blog.csdn.net/holym/archive/2006/05/16/741074.aspx

http://www.cnblogs.com/virusswb/articles/1238807.html
[解决办法]
你是说用C#
生成一段js获取随机数的代码??
如果是可以这样

C# code
protected void page_load(){   regrandom();}protected void regrandom()        {            Page.ClientScript.RegisterStartupScript(typeof(string), "random", "function JSRanDom(){return Math.random();}", true);        }下面的也可以Response.Write("<script>function JSRanDom(){return Math.random();}</script>") 

读书人网 >asp.net

热点推荐