How to test a random generator

前端 未结 12 1177
滥情空心
滥情空心 2020-12-24 01:42

I need to test a random number generator which produces numbers randomly. How to make sure the numbers generated are random.

12条回答
  •  盖世英雄少女心
    2020-12-24 02:20

    It's a very difficult thing.

    You may try ENT from Fourmilab and compare it with the results against their RNG, HotBits. You may also like to review Random.org.

    This also looks interesting: Diehard tests (I've not worked with it though).

提交回复
热议问题