{"id":274,"date":"2015-05-13T20:02:48","date_gmt":"2015-05-13T11:02:48","guid":{"rendered":"http:\/\/www.biscrat.com\/blog\/?p=274"},"modified":"2024-03-19T03:29:02","modified_gmt":"2024-03-18T18:29:02","slug":"kag-intrandom","status":"publish","type":"post","link":"https:\/\/biscrat.com\/blog\/kag-intrandom\/","title":{"rendered":"KAG\u306eintrandom\u3092\u4f7f\u3063\u3066\u306f\u306a\u3089\u306a\u3044"},"content":{"rendered":"<p>\u5409\u91cc\u5409\u91cc2\/KAG3\u306e<a href=\"https:\/\/www.ultrasync.net\/dee\/kr2helps\/kag3doc\/contents\/TJSTips.html#id233\">intrandom<\/a>\u306f\u7c21\u5358\u306b\u4e71\u6570\u304c\u4f7f\u3048\u3066\u4fbf\u5229\u3067\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u72b6\u614b\u3067\u306f\u30d0\u30b0\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u300c@eval exp=&#8221;f.\u4e71\u6570 = intrandom(0, 5)&#8221;\u300d\u3068\u3059\u308b\u3068f.\u4e71\u6570\u306f0\u4ee5\u4e0a5\u4ee5\u4e0b\u306e\u6570\u5024\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u304c\u3001\u975e\u5e38\u306b\u7a00\u306b6\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f<a href=\"https:\/\/togetter.com\/li\/787400\">tjs\u306eMath.random\u304c\u30d0\u30b0\u3063\u3066\u3044\u308b<\/a>\u305f\u3081\u3067\u3059\u304c\u3001\u5409\u91cc\u5409\u91cc2\u306f\u65e2\u306b\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u591a\u5206\u4fee\u6b63\u3055\u308c\u307e\u305b\u3093\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u81ea\u5206\u3067\u76f4\u3057\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092Override.tjs\u304bAfterinit.tjs\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u3051\u3070\u76f4\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: tjs; title: ; notranslate\" title=\"\">\n\/\/ 0\u4ee5\u4e0a1\u672a\u6e80\u306e\u4e71\u6570\u3092\u8fd4\u3059(Math.RandomGenerator\u3092\u4f7f\u3046\u3088\u3046\u306b\u4fee\u6b63)\nMath.random = function() {\n    if (Math.random.staticGenerator === void) {\n        Math.setSeed();\n    }\n    return Math.random.staticGenerator.random();\n};\nMath.random.staticGenerator = void;\n\n\/\/ Math.random\u306e\u30b7\u30fc\u30c9\u3092\u8a2d\u5b9a \nMath.setSeed = function(seed) {\n    if (seed === void) seed = System.getTickCount();\n    if (Math.random.staticGenerator === void) {\n        Math.random.staticGenerator = new Math.RandomGenerator(seed);\n    } else {\n        Math.random.staticGenerator.randomize(seed);\n    }\n};\n<\/pre>\n<p>Math.random\u3092Math.RandomGenerator\u3092\u4f7f\u3063\u3066\u8a08\u7b97\u3059\u308b\u5f62\u306b\u4fee\u6b63\u3057\u3066\u3044\u307e\u3059\u3002Math.random\u304c\u76f4\u308c\u3070\u305d\u308c\u3092\u4f7f\u3063\u3066\u3044\u308bintrandom\u306e\u52d5\u4f5c\u3082\u76f4\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5409\u91cc\u5409\u91cc2\/KAG3\u306eintrandom\u306f\u7c21\u5358\u306b\u4e71\u6570\u304c\u4f7f\u3048\u3066\u4fbf\u5229\u3067\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u72b6\u614b\u3067\u306f\u30d0\u30b0\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u300c@eval exp=&#8221;f.\u4e71\u6570 = intrandom(0, 5)&#8221;\u300d\u3068\u3059\u308b\u3068f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,12],"tags":[3,2],"class_list":["post-274","post","type-post","status-publish","format-standard","hentry","category-kag","category-krkr","tag-kag","tag-2"],"_links":{"self":[{"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/posts\/274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/comments?post=274"}],"version-history":[{"count":9,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/posts\/274\/revisions"}],"predecessor-version":[{"id":984,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/posts\/274\/revisions\/984"}],"wp:attachment":[{"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/media?parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/categories?post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/biscrat.com\/blog\/wp-json\/wp\/v2\/tags?post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}