<bdo id='1csG0'></bdo><ul id='1csG0'></ul>
  • <small id='1csG0'></small><noframes id='1csG0'>

  • <tfoot id='1csG0'></tfoot>
      <legend id='1csG0'><style id='1csG0'><dir id='1csG0'><q id='1csG0'></q></dir></style></legend>
    1. <i id='1csG0'><tr id='1csG0'><dt id='1csG0'><q id='1csG0'><span id='1csG0'><b id='1csG0'><form id='1csG0'><ins id='1csG0'></ins><ul id='1csG0'></ul><sub id='1csG0'></sub></form><legend id='1csG0'></legend><bdo id='1csG0'><pre id='1csG0'><center id='1csG0'></center></pre></bdo></b><th id='1csG0'></th></span></q></dt></tr></i><div id='1csG0'><tfoot id='1csG0'></tfoot><dl id='1csG0'><fieldset id='1csG0'></fieldset></dl></div>

        跨平台一致的伪随机数

        Consistent pseudo-random numbers across platforms(跨平台一致的伪随机数)

          <small id='j906a'></small><noframes id='j906a'>

        • <tfoot id='j906a'></tfoot>

            • <bdo id='j906a'></bdo><ul id='j906a'></ul>

                  <legend id='j906a'><style id='j906a'><dir id='j906a'><q id='j906a'></q></dir></style></legend>

                  <i id='j906a'><tr id='j906a'><dt id='j906a'><q id='j906a'><span id='j906a'><b id='j906a'><form id='j906a'><ins id='j906a'></ins><ul id='j906a'></ul><sub id='j906a'></sub></form><legend id='j906a'></legend><bdo id='j906a'><pre id='j906a'><center id='j906a'></center></pre></bdo></b><th id='j906a'></th></span></q></dt></tr></i><div id='j906a'><tfoot id='j906a'></tfoot><dl id='j906a'><fieldset id='j906a'></fieldset></dl></div>

                    <tbody id='j906a'></tbody>
                1. 本文介绍了跨平台一致的伪随机数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在寻找一种生成伪随机数序列的方法,该方法将为任何平台上的给定种子产生相同的序列结果.我假设 rand()/srand() 不会是一致的(我很容易在这个假设上出错).

                  I am looking for a way to generate pseudo random number sequences that will yield identical sequence results for a given seed across any platform. I am assuming that rand() / srand() is not going to be consistent (I could easily be wrong about this assumption).

                  推荐答案

                  类似于 Mersenne Twister(来自 Boost.Random) 是确定性的.

                  Something like a Mersenne Twister (from Boost.Random) is deterministic.

                  这篇关于跨平台一致的伪随机数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Vary range of uniform_int_distribution(改变uniform_int_distribution的范围)
                  What is a seed in terms of generating a random number?(就生成随机数而言,种子是什么?)
                  Is 1.0 a valid output from std::generate_canonical?(1.0 是 std::generate_canonical 的有效输出吗?)
                  Getting big random numbers in C/C++(在 C/C++ 中获取大随机数)
                  What is the best way to generate random numbers in C++?(在 C++ 中生成随机数的最佳方法是什么?)
                  How do I generate thread-safe uniform random numbers?(如何生成线程安全的统一随机数?)
                  <legend id='oCBbQ'><style id='oCBbQ'><dir id='oCBbQ'><q id='oCBbQ'></q></dir></style></legend>
                  • <bdo id='oCBbQ'></bdo><ul id='oCBbQ'></ul>

                    1. <tfoot id='oCBbQ'></tfoot>
                    2. <i id='oCBbQ'><tr id='oCBbQ'><dt id='oCBbQ'><q id='oCBbQ'><span id='oCBbQ'><b id='oCBbQ'><form id='oCBbQ'><ins id='oCBbQ'></ins><ul id='oCBbQ'></ul><sub id='oCBbQ'></sub></form><legend id='oCBbQ'></legend><bdo id='oCBbQ'><pre id='oCBbQ'><center id='oCBbQ'></center></pre></bdo></b><th id='oCBbQ'></th></span></q></dt></tr></i><div id='oCBbQ'><tfoot id='oCBbQ'></tfoot><dl id='oCBbQ'><fieldset id='oCBbQ'></fieldset></dl></div>

                      <small id='oCBbQ'></small><noframes id='oCBbQ'>

                          <tbody id='oCBbQ'></tbody>