{"id":3219,"date":"2010-06-26T03:44:35","date_gmt":"2010-06-25T18:44:35","guid":{"rendered":"http:\/\/www.sakaiden.com\/?p=3219"},"modified":"2014-02-01T03:13:23","modified_gmt":"2014-01-31T18:13:23","slug":"%e4%bb%a5%e5%89%8d%e3%81%a8%e3%81%8b%e3%81%b6%e3%82%89%e3%81%aa%e3%81%84%e4%b9%b1%e6%95%b0","status":"publish","type":"post","link":"http:\/\/www.sakaiden.com\/?p=3219","title":{"rendered":"\u6570\u5b66 \u4ee5\u524d\u3068\u304b\u3076\u3089\u306a\u3044\u4e71\u6570"},"content":{"rendered":"<p>\u3060\u3081\u3060\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u982d\u50cd\u304b\u306a\u3044\u30fb\u30fb\u30fb\u30fb\u7720\u3044\u3001\u7720\u3089\u305b\u3066<\/p>\n<p>\u3067\u3001\u524d\u306b\u51fa\u305f\u4e71\u6570\u3068\u304b\u3076\u3089\u306a\u3044\u69d8\u306b<br \/>\n\u4e71\u6570\u3092\u3060\u3059\u6642\u306e\u3082\u306e\u3092\u3001for\u30eb\u30fc\u30d7\u3068\u304b\u3067\u4f5c\u308b\u306a\u3089<br \/>\n\u3053\u3046\u304b\u306a\uff1f\uff1f\uff1f<\/p>\n<p>[as3]<\/p>\n<p>\/\/Math.floor\u306f\u3082\u3063\u3068\u3082\u8fd1\u3044\u81ea\u7136\u6570<br \/>\n\/\/Math.random\u3068\u306e\u4f7f\u3044\u65b9\u306f\u3001{ Math.random()*( \u6700\u5927\u5024-\u6700\u5c0f\u5024+1 ) } + \u6700\u5c0f\u5024<br \/>\nvar maxVal = 30;<br \/>\nvar minVal = 0;<br \/>\n\/\/\u307e\u305a\u4e00\u5ea6\u3001\u4e71\u6570\u7bc4\u56f2\u3068\u95a2\u4fc2\u306a\u3044\u6570\u5024\u3092\u5165\u308c\u3066\u304a\u304f<br \/>\nvar numArray:Array = new Array(maxVal+1);<br \/>\nvar num:Number;<\/p>\n<p>var checkNum:Boolean = true;<\/p>\n<p>for(var i=0; i &lt; maxVal; i++){<\/p>\n<p>\/\/\u30d5\u30e9\u30b0\u3092\u30ea\u30bb\u30c3\u30c8\u300d<br \/>\ncheckNum = true;<\/p>\n<p>\/\/\u524d\u306eNumber\u3068\u304b\u3076\u3063\u3066\u3044\u306a\u3051\u308c\u3070<br \/>\nwhile ( checkNum )<br \/>\n{<br \/>\n\/\/\u4e71\u6570\u3092\u4f5c\u6210<br \/>\nnum = Math.floor( ( Math.random()*(maxVal-minVal+1) ) + minVal );\/\/end floor<br \/>\n\/\/\u914d\u5217\u5185\u306b\u4ee5\u524d\u4e71\u6570\u304c\u3042\u308b\u304b\uff1f\uff1f\u3000\u3053\u3093\u306a\u65b9\u6cd5\u3067\u3044\u3044\u306e\u304b\u306a\uff1f<br \/>\n\/\/\u7121\u3051\u308c\u3070while\u3092\u7d42\u4e86<br \/>\nif ( numArray.indexOf(num) == -1 ) checkNum = false;<\/p>\n<p>\/\/trace(numArray.indexOf(num))<br \/>\n};\/\/while end<\/p>\n<p>trace(num)<\/p>\n<p>\/\/\u4eca\u56de\u306e\u4e71\u6570\u3092\u914d\u5217\u306b\u683c\u7d0d<br \/>\nnumArray.push(num);<\/p>\n<p>\/\/trace(numA)\/\/end trace<\/p>\n<p>};\/\/for end<\/p>\n<p>[\/as3]<\/p>\n<p>\u30fb\u30fb\u30fb\u30fb\u3042\u3063\u3066\u308b\u304b\u306a\uff1f\uff1f<\/p>\n<p>\u3060\u3081\u3060\u3001\u3082\u3046\u306d\u308b<\/p>\n<p>\u8ffd\u8a18\u4fee\u6b63\u3001\u3084\u3063\u3071\u308a\u9593\u9055\u3063\u3066\u3044\u305f<br \/>\n\u4e0a\u306e\u3084\u3064\u3067\u3001\u914d\u5217\u3092\u4f5c\u3063\u3066\u3044\u308b\u90e8\u5206\u3067\u3001\u914d\u5217\u306e\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b<br \/>\n\u307b\u304bfor\u30eb\u30fc\u30d7\u306e\u6bd4\u8f03\u65b9\u6cd5\u306b\u554f\u984c\u3042\u308a<\/p>\n<p>\u306a\u304a\u3057\u305f\u30e2\u30ce\u306f\u3053\u308c<\/p>\n<p>[as3]<\/p>\n<p>\/\/Math.floor\u306f\u3082\u3063\u3068\u3082\u8fd1\u3044\u81ea\u7136\u6570<br \/>\n\/\/Math.random\u3068\u306e\u4f7f\u3044\u65b9\u306f\u3001{ Math.random()*( \u6700\u5927\u5024-\u6700\u5c0f\u5024+1 ) } + \u6700\u5c0f\u5024<br \/>\nvar maxVal = 30;<br \/>\nvar minVal = 0;<br \/>\n\/\/\u4e71\u6570\u7bc4\u56f2\u3068\u95a2\u4fc2\u306e\u306a\u3044\u6570\u5b57<br \/>\nvar numArray:Array = new Array();<br \/>\nvar num:Number;<\/p>\n<p>var checkNum:Boolean = true;<\/p>\n<p>for(var i=0; i &lt;= maxVal; i++){<\/p>\n<p>\/\/\u30d5\u30e9\u30b0\u3092\u30ea\u30bb\u30c3\u30c8\u300d<br \/>\ncheckNum = true;<\/p>\n<p>\/\/\u524d\u306eNumber\u3068\u304b\u3076\u3063\u3066\u3044\u306a\u3051\u308c\u3070<br \/>\nwhile ( checkNum )<br \/>\n{<br \/>\n\/\/\u4e71\u6570\u3092\u4f5c\u6210<br \/>\nnum = Math.floor( ( Math.random()*(maxVal-minVal+1) ) + minVal );\/\/end floor<\/p>\n<p>\/\/\u914d\u5217\u5185\u306b\u4ee5\u524d\u4e71\u6570\u304c\u3042\u308b\u304b\uff1f\uff1f\u3000\u3053\u3093\u306a\u65b9\u6cd5\u3067\u3044\u3044\u306e\u304b\u306a\uff1f<br \/>\n\/\/\u7121\u3051\u308c\u3070while\u3092\u7d42\u4e86<br \/>\nif ( numArray.indexOf(num) == -1 )<br \/>\n{<br \/>\ncheckNum = false;<br \/>\n\/\/\u4eca\u56de\u306e\u4e71\u6570\u3092\u914d\u5217\u306b\u683c\u7d0d<br \/>\nnumArray.push(num);<br \/>\n}\/\/if end<\/p>\n<p>\/\/trace(numArray.indexOf(num))<br \/>\n};\/\/while end<\/p>\n<p>trace(num)<\/p>\n<p>\/\/trace(numA)\/\/end trace<\/p>\n<p>};\/\/for end<\/p>\n<p>trace(numArray)<\/p>\n<p>\/\/\u914d\u5217\u3092\u30bd\u30fc\u30c8<br \/>\nnumArray.sort();<br \/>\ntrace(numArray)<\/p>\n<p>[\/as3]<\/p>\n<p>\u3067\u3082\u3001\u3053\u306e\u65b9\u6cd5\u3063\u3066\u3001\u78ba\u7387\u4e0a\u5909\u306a\u52d5\u4f5c\u8d77\u3053\u3057\u305d\u3046\u3060\u306a<br \/>\n\u6570\u5b66\u7684\u306b\u3001\u524d\u306e\u4e71\u6570\u3068\u304b\u3076\u3089\u306a\u3044\u3088\u3046\u306b<br \/>\n\u4e71\u6570\u3092\u51fa\u3059\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u306e\u3060\u308d\u3046\uff1f<\/p>\n<p>\u30fb\u30fb\u30fb\u30fb\u30fb\u3093\u30fc\u30fc<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3060\u3081\u3060\u30fb\u30fb\u30fb\u30fb \u982d\u50cd\u304b\u306a\u3044\u30fb\u30fb\u30fb\u30fb\u7720\u3044\u3001\u7720\u3089\u305b\u3066 \u3067\u3001\u524d\u306b\u51fa\u305f\u4e71\u6570\u3068\u304b\u3076\u3089\u306a\u3044\u69d8\u306b \u4e71\u6570\u3092\u3060\u3059\u6642\u306e\u3082\u306e\u3092\u3001for\u30eb\u30fc\u30d7\u3068\u304b\u3067\u4f5c\u308b\u306a\u3089 \u3053\u3046\u304b\u306a\uff1f\uff1f\uff1f [as3] \/\/Math.floor\u306f\u3082\u3063\u3068\u3082\u8fd1\u3044\u81ea\u7136\u6570 \/\/Math [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":{"0":"post-3219","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-script","7":"czr-hentry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pyh1l-PV","jetpack-related-posts":[{"id":2998,"url":"http:\/\/www.sakaiden.com\/?p=2998","url_meta":{"origin":3219,"position":0},"title":"\u753b\u50cf\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u8aad\u307f\u8fbc\u3080 \u305d\u306e2","author":"\u534a\u8896\u8239\u9577","date":"2010 \u5e74 5 \u6708 30 \u65e5","format":false,"excerpt":"\u524d\u306b\u30a2\u30af\u30b7\u30e7\u30f3\u30b9\u30af\u30ea\u30d7\u30c82\u3067\u4f5c\u3063\u3066\u307f\u305f\u30e9\u30f3\u30c0\u30e0\u8aad\u307f\u8fbc\u307f http:\/\/www.sakaiden.co\u2026","rel":"","context":"\u30b9\u30af\u30ea\u30d7\u30c8","block_context":{"text":"\u30b9\u30af\u30ea\u30d7\u30c8","link":"http:\/\/www.sakaiden.com\/?cat=5"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.sakaiden.com\/wp-content\/uploads\/2010\/05\/ss013-300x168.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2471,"url":"http:\/\/www.sakaiden.com\/?p=2471","url_meta":{"origin":3219,"position":1},"title":"Twitter\u304b\u3089\u8aad\u307f\u8fbc\u3093\u3060\u30fb\u30fb\u30fb\u304c\u30fb\u30fb\u30fb","author":"\u534a\u8896\u8239\u9577","date":"2010 \u5e74 4 \u6708 4 \u65e5","format":false,"excerpt":"\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0\u25a0 \u3053\u306e\u65b9\u6cd5\u306f\u304d\u3063\u3068\u5f79\u306b\u7acb\u3061\u307e\u305b\u3093\u30fb\u30fb\u30fb\u30fb \u3057\u3063\u304b\u2026","rel":"","context":"\u30b9\u30af\u30ea\u30d7\u30c8","block_context":{"text":"\u30b9\u30af\u30ea\u30d7\u30c8","link":"http:\/\/www.sakaiden.com\/?cat=5"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.sakaiden.com\/wp-content\/uploads\/2010\/04\/toFlash-300x168.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":14051,"url":"http:\/\/www.sakaiden.com\/?p=14051","url_meta":{"origin":3219,"position":2},"title":"\u305d\u306e\u4ed6 \u3084\u3063\u3071\u308a\u30e9\u30b8\u30a2\u30f3\u3089\u3057\u3044","author":"\u534a\u8896\u8239\u9577","date":"2014 \u5e74 1 \u6708 22 \u65e5","format":false,"excerpt":"\u304a\u30fc\u308c\u306f\u30e9\u30b8\u30a2\u30fc\u30fc\u30f3 \u30ac\u30ad\u5927\u5c06\uff5e\uff5e \u5929\u4e0b\u7121\u6575\u306e\u56de\u8ee2\u5024\uff5e\uff5e \u3068\u3044\u3046\u3053\u3068\u3067 \u305d\u306e\u4ed6 \u666e\u901a\u30e9\u30b8\u30a2\u30f3\u306a\u306e\u304b\u306a\u2026","rel":"","context":"\u30b9\u30af\u30ea\u30d7\u30c8","block_context":{"text":"\u30b9\u30af\u30ea\u30d7\u30c8","link":"http:\/\/www.sakaiden.com\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25811,"url":"http:\/\/www.sakaiden.com\/?p=25811","url_meta":{"origin":3219,"position":3},"title":"\u30df\u30ea\u79d2\u304b\u3089\u30d5\u30ec\u30fc\u30e0\u6570\u3078","author":"\u534a\u8896\u8239\u9577","date":"2018 \u5e74 4 \u6708 17 \u65e5","format":false,"excerpt":"\u3048\u3047\u3047\u30fb\u30fb\u3001\u306a\u306b\u3053\u308c\uff1f \u4e2d\u8eab\u30df\u30ea\u30bb\u30b3\u30f3\u30c9\u306a\u306e\uff1f \u3081\u3093\u3069\u304f\u305b\u30fc\u306a\u3001\u6700\u521d\u304b\u3089\u30d5\u30ec\u30fc\u30e0\u3067\u3082\u3063\u3068\u3051\u3084\u30fb\u30fb\u30fb \u2026","rel":"","context":"JavaScripts JS","block_context":{"text":"JavaScripts JS","link":"http:\/\/www.sakaiden.com\/?cat=79"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.sakaiden.com\/wp-content\/uploads\/2018\/01\/2018-01-20_13h32_11.png?fit=828%2C579&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.sakaiden.com\/wp-content\/uploads\/2018\/01\/2018-01-20_13h32_11.png?fit=828%2C579&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.sakaiden.com\/wp-content\/uploads\/2018\/01\/2018-01-20_13h32_11.png?fit=828%2C579&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.sakaiden.com\/wp-content\/uploads\/2018\/01\/2018-01-20_13h32_11.png?fit=828%2C579&resize=700%2C400 2x"},"classes":[]},{"id":2955,"url":"http:\/\/www.sakaiden.com\/?p=2955","url_meta":{"origin":3219,"position":4},"title":"\u914d\u5217\u3092\u3044\u3058\u308b","author":"\u534a\u8896\u8239\u9577","date":"2010 \u5e74 5 \u6708 26 \u65e5","format":false,"excerpt":"\u4eca\u65e5\u306f\u3001AS\u306e\u914d\u5217\u3092\u5c11\u3057\u3044\u3058\u3063\u3066\u307f\u308b \u307b\u3093\u3068\u306b\u3001\u5c11\u3057\u3060\u3051 \u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304c\u308f\u304b\u308c\u3070\u3072\u3068\u307e\u305a\u3044\u3044\u304b\u306a \u2026","rel":"","context":"\u30b9\u30af\u30ea\u30d7\u30c8","block_context":{"text":"\u30b9\u30af\u30ea\u30d7\u30c8","link":"http:\/\/www.sakaiden.com\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3184,"url":"http:\/\/www.sakaiden.com\/?p=3184","url_meta":{"origin":3219,"position":5},"title":"\u6587\u5b57\u5217\u306e\u64cd\u4f5c\u30b5","author":"\u534a\u8896\u8239\u9577","date":"2010 \u5e74 6 \u6708 20 \u65e5","format":false,"excerpt":"\u30a2\u30c9\u30d3\u306e\u30d8\u30eb\u30d7\u306f\u3053\u3053\u3088\u30fc http:\/\/livedocs.adobe.com\/flash\/9.0_j\u2026","rel":"","context":"\u30b9\u30af\u30ea\u30d7\u30c8","block_context":{"text":"\u30b9\u30af\u30ea\u30d7\u30c8","link":"http:\/\/www.sakaiden.com\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":false,"_links":{"self":[{"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=\/wp\/v2\/posts\/3219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3219"}],"version-history":[{"count":8,"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=\/wp\/v2\/posts\/3219\/revisions"}],"predecessor-version":[{"id":13466,"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=\/wp\/v2\/posts\/3219\/revisions\/13466"}],"wp:attachment":[{"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3219"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sakaiden.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}