{"id":677,"date":"2011-01-28T10:04:21","date_gmt":"2011-01-28T02:04:21","guid":{"rendered":""},"modified":"2014-03-11T22:36:21","modified_gmt":"2014-03-11T14:36:21","slug":"%e9%9a%8f%e6%9c%ba%e6%95%b0","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2011\/01\/28\/677.htm","title":{"rendered":"\u968f\u673a\u6570"},"content":{"rendered":"<p>&lt;%<br \/>\nFunction GetRndNum(Upperbound , Lowerbound)<\/p>\n<p>&nbsp;<\/p>\n<p>Dim mReturn<\/p>\n<p>&nbsp;<\/p>\n<p>Randomize<\/p>\n<p>&nbsp;<\/p>\n<p>mReturn = Int((Upperbound &#8211; Lowerbound + 1) * Rnd + Lowerbound)<\/p>\n<p>&nbsp;<\/p>\n<p>GetRndNum = mReturn<\/p>\n<p>&nbsp;<\/p>\n<p>End Function<\/p>\n<p>&nbsp;<\/p>\n<p>for i=1 to 5<\/p>\n<p>&nbsp;<\/p>\n<p>response.write GetRndNum(10000000,99999999)&amp;&quot;&lt;br&gt;&quot;<\/p>\n<p>&nbsp;<\/p>\n<p>next<br \/>\n%&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;SCRIPT LANGUAGE=&quot;VBScript&quot;&gt;<br \/>\nDim jnkcD,jnkcNum,aKey<\/p>\n<p>&nbsp;<\/p>\n<p>Set JnkcD = CreateObject(&quot;Scripting.Dictionary&quot;)<br \/>\nRandomize<br \/>\nDo Until JnkcD.Count=&lt;%=request(&quot;num&quot;)%&gt;<br \/>\njnkcNum = Int((1000000000-9999999999+1) * Rnd +9999999999)<br \/>\nIf Not JnkcD.Exists(jnkcNum) Then JnkcD.Add jnkcNum,Null<br \/>\nLoop<br \/>\nFor Each aKey In JnkcD.Keys()<br \/>\ni=i+1<br \/>\ndocument.write &quot;\u5361\u53f7\uff1a&quot;&amp;akey&amp;&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;&amp;i&amp;&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;&amp; &quot;&lt;br&gt;&quot;<\/p>\n<p>&nbsp;<\/p>\n<p>Next<br \/>\nSet jnkcD = Nothing<br \/>\n&lt;\/SCRIPT&gt;<br \/>\n##########################################################<br \/>\n&lt;script&gt;<br \/>\nfunction getNickName(){<br \/>\nvar allChar = &quot;abcdefghijklmnopqrstuvwxyz&quot;.split(&quot;&quot;);<br \/>\nvar myarray = [];<br \/>\nfor(var i = 0;i &lt; 8; i ++ ){<br \/>\nmyarray.push(allChar[Math.round(Math.random()*25)]);<br \/>\n}<br \/>\nmyarray = myarray.sort(function() {return 0.5 &#8211; Math.random()})<br \/>\nreturn myarray.join(&quot;&quot;);<br \/>\n}<br \/>\ndocument.writeln(getNickName())<br \/>\n&lt;\/script&gt;<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;% Function GetRndNum(Upperbound , Lowerbound) &nbsp; Dim mReturn &nbsp; Randomize &nbsp; mReturn = Int((Upperbound &#038;&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-677","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=677"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"predecessor-version":[{"id":66527,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions\/66527"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=677"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}