{"published":"2012-04-03 19:04:06","title":"\u4e71\u6570\u3092\u751f\u6210\u3059\u308b","version":"1.0","author_name":"shigemk2","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","url":"https://www.shigemk2.com/entry/20120403/1333447446","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20120403%2F1333447446\" title=\"\u4e71\u6570\u3092\u751f\u6210\u3059\u308b - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"PHP: rand - Manual int rand ( void ) int rand ( int $min , int $max ) \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5f15\u6570 min,max \u3092\u7701\u7565\u3057\u3066\u30b3\u30fc\u30eb\u3057\u305f\u5834\u5408\u3001rand() \u306f 0 \u3068 getrandmax() \u306e\u9593\u306e\u64ec\u4f3c\u4e71\u6570(\u6574\u6570)\u3092\u8fd4\u3059\u3002 \u4f8b\u3048\u3070\u30015 \u304b\u3089 15 \u307e\u3067\uff08\u4e21\u7aef\u3092\u542b\u3080\uff09\u306e\u4e71\u6570\u3092\u5f97\u305f\u3044\u5834\u5408\u3001 rand(5, 15) \u3068\u3059\u308b\u3002\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u3088\u308b\u3051\u3069\u3001 getrandmax() \u306f 32767\u3092\u3046\u308d\u3046\u308d\u3057\u3066\u3044\u308b\u3002","width":"100%","height":"190","type":"rich","blog_url":"https://www.shigemk2.com/","author_url":"https://blog.hatena.ne.jp/shigemk2/","blog_title":"by shigemk2","image_url":null,"categories":["php"]}