{"blog_url":"https://yohhoy.hatenadiary.jp/","version":"1.0","width":"100%","published":"2018-09-28 00:00:00","categories":["C"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20180928%2Fp1\" title=\"rand\u306e\u65e2\u5b9a\u30b7\u30fc\u30c9\u5024\u306f1 - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"yohhoy","title":"rand\u306e\u65e2\u5b9a\u30b7\u30fc\u30c9\u5024\u306f1","author_url":"https://blog.hatena.ne.jp/yohhoy/","image_url":null,"height":"190","provider_name":"Hatena Blog","description":"C\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u63d0\u4f9b\u306e\u64ec\u4f3c\u4e71\u6570\u751f\u6210\u95a2\u6570rand\u3067\u306f\u3001\u65e2\u5b9a\u306e\u30b7\u30fc\u30c9\u5024\u306f 1 \u3068\u5b9a\u7fa9\u3055\u308c\u308b\u3002 #include <stdlib.h> int main() { // \u6697\u9ed9\u306bsrand(1)\u76f8\u5f53\u3067\u30b7\u30fc\u30c9\u5024\u3092\u8a2d\u5b9a int x = rand(); } C11 7.22.2.2/p2\u3088\u308a\u5f15\u7528\uff08\u4e0b\u7dda\u90e8\u306f\u5f37\u8abf\uff09\u3002 The srand function uses the argument as a seed for a new sequence of pseudo-random numbers to be returned by subsequent calls to rand. If srand is the\u2026","type":"rich","url":"https://yohhoy.hatenadiary.jp/entry/20180928/p1","provider_url":"https://hatena.blog","blog_title":"yohhoy\u306e\u65e5\u8a18"}