{"author_name":"seinzumtode","published":"2011-08-18 21:36:54","url":"https://seinzumtode.hatenadiary.jp/entry/20110818/1313671014","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/seinzumtode/","title":"\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5","width":"100%","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/seinzumtode/20110818/20110818215040.png","blog_url":"https://seinzumtode.hatenadiary.jp/","description":"\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5\u3067\u5186\u5468\u7387\u03c0\u3092\u6c42\u3081\u308b\u3002 \u3053\u306e\u30da\u30fc\u30b8\u3068\u304b\u304c\u53c2\u8003\u306b\u306a\u308b\u3002 http://www.f.waseda.jp/takezawa/math/number/Pi/monte.html #!usr/bin/env python # -*- coding: utf-8 -*- #montecarlo.py import sys import random N=raw_input(\"input trial number : \") a= 0 for x in range(int(N)): x = random.random() y = random.random() if pow(x,2)+pow(y,\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseinzumtode.hatenadiary.jp%2Fentry%2F20110818%2F1313671014\" title=\"\u30e2\u30f3\u30c6\u30ab\u30eb\u30ed\u6cd5 - how to code something\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Python","\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0"],"version":"1.0","provider_url":"https://hatena.blog","type":"rich","height":"190","blog_title":"how to code something"}