Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!ecngs!feeder2.ecngs.de!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Tue, 13 Dec 2016 15:02:15 -0600 From: Gareth Owen Newsgroups: comp.lang.c,comp.programming Subject: Re: Fake random numbers? Bad programmers? References: Date: Tue, 13 Dec 2016 21:02:06 +0000 Message-ID: <87wpf3fsq9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:MoSlVxFq41QXQbq9/tEJ7PQLGck= MIME-Version: 1.0 Content-Type: text/plain Lines: 26 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-ENA4eqYiUbBkrebxgM/yGzLsBEWCYPu02AhaSL9Paj3BWPxN7qu3lexbHjmsmDJW0DoYUyiZtYyqPsH!SFxuPnbXiOOlXgTGCcWMA8sbgGCkaKNyUilYGsqT0MBxqU7yLkCCu+2lJPgZG/hl9zm4 X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2041 Xref: csiph.com comp.lang.c:99258 comp.programming:7137 Ken Brody writes: > On 12/11/2016 7:56 AM, Mr. Man-wai Chang wrote: >> >> How to determine whether a random number generator is fake? >> >> How to determine whether a random number generator is cheating? > [...] > > I would think that, since a "true" random number generator can > generate any sequence of numbers (even the same number multiple times > in a row), I'm not sure you could prove "badness" here. > > Reminds me of this: > > http://xkcd.com/221/ Because "true" random number generators pass certain statistical tests with probability close-enough-to-one as to make no matter. "So, if it is impossible to definitively prove randomness, what can we do instead? The pragmatic approach is to take many sequences of random numbers from a given generator and subject them to a battery of statistical tests. As the sequences pass more of the tests, the confidence in the randomness of the numbers increases and so does the confidence in the generator" -- https://www.random.org/analysis/