Special simple random number generator

后端 未结 7 2150
一整个雨季
一整个雨季 2020-12-01 08:47

How to create a function, which on every call generates a random integer number? This number must be most random as possible (according to uniform distribution). It is only

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 08:57

    Boost has a very nice random number library, and the source code is available, so you could try looking there and using what you need (i.e. cut and paste).

提交回复
热议问题