0

Suppose we have a random generator, how do we test the randomness of its output?

If I made two calls, there is a slight chance that the two results collide.

Yu Hao
  • 119,891
  • 44
  • 235
  • 294
Archer
  • 507
  • 1
  • 8
  • 21

2 Answers2

0

You can run statistical tests on the output.

Chapter 3 of Knuth's Art of computer programming discusses it in depth.

gturri
  • 13,807
  • 9
  • 40
  • 57
0

There are random number generator testers. They run various test such as checking whether the average of the numbers is the center of the numbers. However, such tests are not conclusive, i.e. it is possible to have a faulty random number generator which passes all the tests.

Ramchandra Apte
  • 4,033
  • 2
  • 24
  • 44