How to test a random generator

前端 未结 12 1145
滥情空心
滥情空心 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:01

    Create a log file which will contains the random number for atleast 500 instances and audit it for randomness. Also have a look at below link,

    http://burtleburtle.net/bob/rand/testsfor.html

提交回复
热议问题