What is a good random number generator for a game?

前端 未结 16 1605
渐次进展
渐次进展 2020-12-02 04:26

What is a good random number generator to use for a game in C++?

My considerations are:

  1. Lots of random numbers are needed, so speed is good.
  2. P
16条回答
  •  忘掉有多难
    2020-12-02 05:28

    I want it random enough that people (at least those who understand randomness) can't complain about it, but I'm not worried about predictions.

    A-ha!

    There's your real requirement!

    No one could fault you for using Mersenne Twister in this application.

提交回复
热议问题