{"id":10980,"date":"2015-05-31T18:20:55","date_gmt":"2015-05-31T09:20:55","guid":{"rendered":"http:\/\/programminglanguage7.com\/?p=10980"},"modified":"2015-05-31T18:20:55","modified_gmt":"2015-05-31T09:20:55","slug":"post-10980","status":"publish","type":"post","link":"https:\/\/programminglanguage7.com\/?p=10980","title":{"rendered":"if\u3067\u5360\u3044\u3092\u4f5c\u308d\u3046"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u3053\u306e\u7ae0\u3067\u306fif\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001\u5360\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3067\u306f\u4f8b\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91635.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-10981\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91635-300x235.jpg\" alt=\"9\" width=\"300\" height=\"235\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91635-300x235.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91635.jpg 478w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91636.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-10982\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91636-300x265.jpg\" alt=\"9\" width=\"269\" height=\"238\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91636-300x265.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91636.jpg 427w\" sizes=\"(max-width: 269px) 100vw, 269px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">randint\u95a2\u6570\u306b\u3064\u3044\u3066\u306f\u8aac\u660e\u6e08\u307f\u3067\u3059\u304c\u3001\u3082\u3046\u4e00\u5ea6\u5fa9\u7fd2\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306e\u4e2d\u306b<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91637.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-10983\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91637-300x33.jpg\" alt=\"9\" width=\"300\" height=\"33\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91637-300x33.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91637.jpg 360w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u3068\u3044\u3046\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u4e71\u6570\u3092\u751f\u6210\u3059\u308brandint\u95a2\u6570\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306e\u8a18\u8ff0\u30670\u304b\u30896\u307e\u3067\u306e\u6574\u6570\u5024\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u751f\u6210\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u4ed6\u306b\u3082<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91638.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-10984\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91638-300x31.jpg\" alt=\"9\" width=\"300\" height=\"31\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91638-300x31.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91638.jpg 375w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u306e\u3088\u3046\u306b\u4f7f\u7528\u3059\u308b\u3068\u30012\u304b\u308912\u307e\u3067\u306e\u6574\u6570\u5024\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u751f \u6210\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306erandint\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306frandom\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u8a00\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u5165\u308c\u306a\u304f\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u53d6\u308a\u5165\u308c\u308b\u306b\u306f<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91639.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-10985\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91639-300x32.jpg\" alt=\"9\" width=\"300\" height=\"32\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91639-300x32.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91639.jpg 360w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u3068\u3044\u3046\u8a18\u8ff0\u304c\u5fc5\u8981\u3067\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u8a00\u3046\u306e\u306f\u6a5f\u80fd\u3054\u3068\u306b\u5206\u304b\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u4f8b\u3048\u3070random\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u306frandint\u95a2\u6570\u306e\u4ed6\u306b\u3082random\u95a2\u6570\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u95a2\u6570\u306f0.0\u304b\u30891.0\u307e\u3067\u306e\u5c0f\u6570\u70b9\u3092\u542b\u3093\u3060\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">random\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u306f\u3053\u306e\u3088\u3046\u306b\u6a5f\u80fd\u304c\u4f3c\u305f\u95a2\u6570\u304c\u8907\u6570\u3042\u308a\u30011\u3064\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u3057\u3066\u307e\u3068\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3067\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8aac\u660e\u306b\u5165\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">answer\u306b\u306f0\u304b\u30896\u307e\u3067\u306e\u6574\u6570\u5024\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4f8b\u3048\u30700\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u3059\u308b\u3068<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91640.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10986\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91640.jpg\" alt=\"9\" width=\"183\" height=\"37\" \/><\/a>\u306b\u306a\u308b\u306e\u3067\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91641.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-10987\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91641-300x30.jpg\" alt=\"9\" width=\"300\" height=\"30\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91641-300x30.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91641.jpg 415w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u306e\u7b87\u6240\u306ftrue\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u7d50\u679c\u3001\u300c\u5927\u5409\u3067\u3059\u300d\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3001\u6bce\u56de\u9055\u3046\u5360\u3044\u7d50\u679c\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91642.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10988\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91642.jpg\" alt=\"9\" width=\"285\" height=\"162\" \/><\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u7ae0\u3067\u306fif\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001\u5360\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u307e\u3059\u3002 \u3067\u306f\u4f8b\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002 randint\u95a2\u6570\u306b\u3064\u3044\u3066\u306f\u8aac\u660e\u6e08\u307f\u3067\u3059\u304c\u3001\u3082\u3046\u4e00\u5ea6\u5fa9\u7fd2\u3057\u307e\u3059\u3002 \u3053\u306e\u4e2d\u306b\u3068\u3044\u3046\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u4e71\u6570\u3092\u751f\u6210\u3059\u308brandint\u95a2\u6570\u3092 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[634],"tags":[142,656],"class_list":["post-10980","post","type-post","status-publish","format-standard","hentry","category-python","tag-if","tag-randint"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/10980"}],"collection":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10980"}],"version-history":[{"count":1,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/10980\/revisions"}],"predecessor-version":[{"id":10989,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/10980\/revisions\/10989"}],"wp:attachment":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}