{"published":"2007-06-03 00:15:08","author_name":"Tumura","width":"100%","provider_name":"Hatena Blog","height":"190","url":"https://tsumura.hateblo.jp/entry/20070603/1180883708","image_url":null,"provider_url":"https://hatena.blog","title":"","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsumura.hateblo.jp%2Fentry%2F20070603%2F1180883708\" title=\" - \u30c4\u30e0\u30e9_\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/Tumura/","description":"\u4e57\u7b97\u5408\u540c\u6cd5\u306b\u3064\u3044\u3066\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e01\u3002 \u9069\u5f53\u3002 //multiplicative congruential method //jrand #include<stdio.h> #include<math.h> int main(void){ int set_n=50; //\u6570\u5217n\u306e\u521d\u671f\u5024 int set_b=17; //\u5468\u671f\u306e\u521d\u671f\u5024b int cnt; //\u30ab\u30a6\u30f3\u30bf\u7528\u306e\u5909\u6570cnt int max_cnt=20; //\u51fa\u529b\u6700\u5927\u6570 double x; int a=363; int m=pow(2,set_b); if(max_cnt>pow(2,set_b -2)){ fprintf(stder\u2026","categories":["C\u8a00\u8a9e"],"blog_title":"\u30c4\u30e0\u30e9_\u30e1\u30e2","type":"rich","blog_url":"https://tsumura.hateblo.jp/"}