首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

2012-03-07 
如何实现随机数脚本语言用c#如何实现随机数脚本语言用c#[解决办法]http://blog.csdn.net/holym/archive/20

如何实现随机数脚本语言用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>") 

热点排行