注æï¼ææ°ãã©ããã®N3000ã®randomã®è¦å®ã¯ãã³ã³ã»ãããå´ä¸ãããåã®æé¢ã§ãããä»å¾ãå¤æ´ãããã¨æãããã C++ã¯æ¨æºã©ã¤ãã©ãªã貧弱ã§ããã¨ã¯ãããè¨ããããã¨ã ããã¨ã«ãä¹±æ°ã«é¢ãã¦ã¯ã貧弱ã®æ¥µã¿ã§ããããåãã®ããã«ãC++ã¯ãCããæ¨æºã©ã¤ãã©ãªãå¼ãç¶ãã§ãããrand()ã ãããã¯ã0ããRAND_MAXã¾ã§ã®å¤ãè¿ãã¨è¦å®ããã¦ãããRAND_MAXã¯å®è£ ã«ãã£ã¦ç°ãªãããã»ã¨ãã©ã®å¦çç³»ã§ã¯ã32767ã§ãããç¾ä»£ã®ä¹±æ°éè¦ãæºããã«ã¯ããã¾ãã«ãå°ããããã ãã®ç¶æ³ãæç ´ãã¹ããC++0xã«ã¯æ°ããä¹±æ°ã®ã©ã¤ãã©ãªãçãè¾¼ã¾ãããrandomã§ãããããã¯Boostã®å®è£ ãå ã«ãã¦ããã®ã ããBoostã¨ã¯å°ãéã£ã¦ãããä»åã¯ãã®randomããæµ ã触ãã ãç´¹ä»ãããã¨æããã¨ããã®ããã©ã¤ãã©ãªã®ç´°ããªã¡ã³ãé¢æ°ã®ä¸ã¤ä¸ã¤ã¾ã§èª¬æããã®ã¯ãçã åé·ã§
{{#tags}}- {{label}}
{{/tags}}