{"id":77,"date":"2026-03-17T23:11:29","date_gmt":"2026-03-17T14:11:29","guid":{"rendered":"http:\/\/tool-laboratory.com\/?p=77"},"modified":"2026-03-20T23:59:51","modified_gmt":"2026-03-20T14:59:51","slug":"random-number-2","status":"publish","type":"post","link":"https:\/\/tool-laboratory.com\/en\/random-number-2\/","title":{"rendered":"\u30e9\u30f3\u30c0\u30e0\u6570\u5b57\u751f\u6210\u30c4\u30fc\u30eb\uff5c\u4e71\u6570\u3092\u7c21\u5358\u4f5c\u6210"},"content":{"rendered":"<h2>\u30e9\u30f3\u30c0\u30e0\u6570\u5b57\u751f\u6210\u30c4\u30fc\u30eb<\/h2>\n\n<p>\n\u300c\u30e9\u30f3\u30c0\u30e0\u3067\u6570\u5b57\u3092\u6c7a\u3081\u305f\u3044\u300d\u3068\u601d\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f  \n\u62bd\u9078\u3084\u304f\u3058\u5f15\u304d\u3001\u30b2\u30fc\u30e0\u306a\u3069\u3067\u516c\u5e73\u306b\u6570\u5b57\u3092\u6c7a\u3081\u308b\u306e\u306f\u610f\u5916\u3068\u96e3\u3057\u3044\u3082\u306e\u3067\u3059\u3002\n<\/p>\n\n<p>\n\u3053\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3070\u3001\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u5185\u3067\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u5b57\u3092\u7c21\u5358\u306b\u751f\u6210\u3067\u304d\u307e\u3059\u3002\n<\/p>\n\n<div style=\"margin:30px 0;padding:20px;background:#f7f7f7;border-radius:10px;\">\n\n<input type=\"number\" id=\"min\" placeholder=\"\u6700\u5c0f\u5024\" style=\"padding:10px;width:100%;margin-bottom:10px;\">\n<input type=\"number\" id=\"max\" placeholder=\"\u6700\u5927\u5024\" style=\"padding:10px;width:100%;margin-bottom:10px;\">\n\n<button onclick=\"random()\" style=\"padding:10px;width:100%;\">\u751f\u6210<\/button>\n\n<p id=\"result\" style=\"font-size:22px;font-weight:bold;color:#0073aa;\"><\/p>\n\n<\/div>\n\n<script>\nfunction random(){\n\nlet min = Number(document.getElementById(\"min\").value);\nlet max = Number(document.getElementById(\"max\").value);\n\nif(min > max){\ndocument.getElementById(\"result\").innerText = \"\u5165\u529b\u30a8\u30e9\u30fc\";\nreturn;\n}\n\nlet r = Math.floor(Math.random()*(max-min+1))+min;\n\ndocument.getElementById(\"result\").innerText = r;\n\n}\n<\/script>\n\n<h2>\u3053\u306e\u30c4\u30fc\u30eb\u3067\u3067\u304d\u308b\u3053\u3068<\/h2>\n\n<p>\n\u6307\u5b9a\u3057\u305f\u6700\u5c0f\u5024\u3068\u6700\u5927\u5024\u306e\u7bc4\u56f2\u5185\u3067\u3001\u30e9\u30f3\u30c0\u30e0\u306a\u6574\u6570\u3092\u751f\u6210\u3067\u304d\u307e\u3059\u3002  \n\u62bd\u9078\u3084\u30b2\u30fc\u30e0\u306a\u3069\u3067\u516c\u5e73\u306b\u6570\u5b57\u3092\u6c7a\u3081\u305f\u3044\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002\n<\/p>\n\n<h2>\u3053\u3093\u306a\u4eba\u306b\u304a\u3059\u3059\u3081<\/h2>\n\n<ul>\n<li>\u304f\u3058\u5f15\u304d\u3084\u62bd\u9078\u3092\u3057\u305f\u3044\u4eba<\/li>\n<li>\u30e9\u30f3\u30c0\u30e0\u306b\u6570\u5b57\u3092\u6c7a\u3081\u305f\u3044\u4eba<\/li>\n<li>\u30b2\u30fc\u30e0\u3084\u30a4\u30d9\u30f3\u30c8\u3067\u5229\u7528\u3057\u305f\u3044\u4eba<\/li>\n<\/ul>\n\n<h2>\u4f7f\u3044\u65b9<\/h2>\n\n<ol>\n<li>\u6700\u5c0f\u5024\u3092\u5165\u529b<\/li>\n<li>\u6700\u5927\u5024\u3092\u5165\u529b<\/li>\n<li>\u300c\u751f\u6210\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af<\/li>\n<li>\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u5b57\u304c\u8868\u793a\u3055\u308c\u307e\u3059<\/li>\n<\/ol>\n\n<h2>\u30e9\u30f3\u30c0\u30e0\u6570\u5b57\u3068\u306f<\/h2>\n\n<p>\n\u30e9\u30f3\u30c0\u30e0\u6570\u5b57\u3068\u306f\u3001\u898f\u5247\u6027\u306e\u306a\u3044\u6570\u5024\u306e\u3053\u3068\u3092\u6307\u3057\u307e\u3059\u3002  \n\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u306f\u300c\u64ec\u4f3c\u4e71\u6570\u300d\u3068\u547c\u3070\u308c\u308b\u65b9\u6cd5\u3067\u751f\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\n<\/p>\n\n<h2>\u5177\u4f53\u4f8b<\/h2>\n\n<p>\n\u4f8b\u3048\u3070\u30011\u301c5\u306e\u7bc4\u56f2\u3067\u751f\u6210\u3059\u308b\u3068\uff1a\n<\/p>\n\n<ul>\n<li>1<\/li>\n<li>3<\/li>\n<li>5<\/li>\n<li>2<\/li>\n<\/ul>\n\n<p>\n\u3053\u306e\u3088\u3046\u306b\u3001\u6bce\u56de\u7570\u306a\u308b\u6570\u5b57\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\n<\/p>\n\n<h2>\u6d3b\u7528\u30b7\u30fc\u30f3<\/h2>\n\n<ul>\n<li>\u62bd\u9078\u3084\u304f\u3058\u5f15\u304d<\/li>\n<li>\u30c1\u30fc\u30e0\u5206\u3051<\/li>\n<li>\u30b2\u30fc\u30e0\u306e\u30e9\u30f3\u30c0\u30e0\u8981\u7d20<\/li>\n<li>\u756a\u53f7\u6c7a\u3081<\/li>\n<\/ul>\n\n<h2>\u6ce8\u610f\u70b9<\/h2>\n\n<ul>\n<li>\u6700\u5c0f\u5024\u306f\u6700\u5927\u5024\u4ee5\u4e0b\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044<\/li>\n<li>\u540c\u3058\u6570\u5b57\u304c\u9023\u7d9a\u3067\u51fa\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059<\/li>\n<li>\u5b8c\u5168\u306a\u4e71\u6570\u3067\u306f\u306a\u304f\u64ec\u4f3c\u4e71\u6570\u3067\u3059<\/li>\n<\/ul>\n\n<h2>\u307e\u3068\u3081<\/h2>\n\n<p>\n\u30e9\u30f3\u30c0\u30e0\u6570\u5b57\u751f\u6210\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3070\u3001\u516c\u5e73\u306b\u6570\u5b57\u3092\u6c7a\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002  \n\u3055\u307e\u3056\u307e\u306a\u5834\u9762\u3067\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\n<\/p>\n\n<h2>\u95a2\u9023\u30c4\u30fc\u30eb<\/h2>\n\n<ul>\n<li>\u304f\u3058\u5f15\u304d\u30c4\u30fc\u30eb<\/li>\n<li>\u30e9\u30f3\u30c0\u30e0\u6587\u5b57\u5217\u751f\u6210\u30c4\u30fc\u30eb<\/li>\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u30c4\u30fc\u30eb<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>\u30e9\u30f3\u30c0\u30e0\u6570\u5b57\u751f\u6210\u30c4\u30fc\u30eb \u300c\u30e9\u30f3\u30c0\u30e0\u3067\u6570\u5b57\u3092\u6c7a\u3081\u305f\u3044\u300d\u3068\u601d\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u62bd\u9078\u3084\u304f\u3058\u5f15\u304d\u3001\u30b2\u30fc\u30e0\u306a\u3069\u3067\u516c\u5e73\u306b\u6570\u5b57\u3092\u6c7a\u3081\u308b\u306e\u306f\u610f\u5916\u3068\u96e3\u3057\u3044\u3082\u306e\u3067\u3059\u3002 \u3053\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3070\u3001\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u5185\u3067\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u5b57\u3092\u7c21\u5358\u306b\u751f\u6210\u3067 &#8230; <a title=\"\u30e9\u30f3\u30c0\u30e0\u6570\u5b57\u751f\u6210\u30c4\u30fc\u30eb\uff5c\u4e71\u6570\u3092\u7c21\u5358\u4f5c\u6210\" class=\"read-more\" href=\"https:\/\/tool-laboratory.com\/en\/random-number-2\/\" aria-label=\"Read more about \u30e9\u30f3\u30c0\u30e0\u6570\u5b57\u751f\u6210\u30c4\u30fc\u30eb\uff5c\u4e71\u6570\u3092\u7c21\u5358\u4f5c\u6210\">Read more<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-calculator"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":2,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts\/77\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}