Skip to content
Prev 54323 / 63424 Next

Extreme bunching of random values from runif with Mersenne-Twister seed

Bill,

I have clarified this on SO, and I will copy that clarification in here:

"Sure, we tested them on other 8-digit numbers as well & we could not
replicate. However, these are honest-to-goodness numbers generated by a
non-adversarial system that has no conception of these numbers being used
for anything other than a unique key for an entity -- these are not a
specially constructed edge case. Would be good to know what seeds will and
will not work, and why."

These numbers are generated by an application that serves a form, and
associates form IDs in a sequence. The application calls our API depending
on the form values entered by users, which in turn calls our R code that
executes some code that needs an RNG. Since the API has to be stateless, to
be able to replicate the results for possible debugging, we need to draw
random numbers in a way that we can replicate the results of the API
response -- we use the form ID as seeds.

I repeat, there is no design or anything adversarial about the way that
these numbers were generated -- the system generating these numbers and the
users entering inputs have no conception of our use of an RNG -- this is
meant to just be a random sequence of form IDs. This issue was discovered
completely by chance when the output of the API was observed to be highly
non-random. It is possible that it is a 1/10^8 chance, but that is hard to
believe, given that the API hit depends on user input. Note also that the
issue goes away when we use a different RNG as mentioned below.

T
On Fri, Nov 3, 2017 at 9:58 PM, William Dunlap <wdunlap at tibco.com> wrote:

            

  
  

Thread (16 messages)

Tirthankar Chakravarty Extreme bunching of random values from runif with Mersenne-Twister seed Nov 3 Martin Maechler Extreme bunching of random values from runif with Mersenne-Twister seed Nov 3 Lukas Stadler Extreme bunching of random values from runif with Mersenne-Twister seed Nov 3 Tirthankar Chakravarty Extreme bunching of random values from runif with Mersenne-Twister seed Nov 3 Serguei Sokol Extreme bunching of random values from runif with Mersenne-Twister seed Nov 3 William Dunlap Extreme bunching of random values from runif with Mersenne-Twister seed Nov 3 Tirthankar Chakravarty Extreme bunching of random values from runif with Mersenne-Twister seed Nov 3 William Dunlap Extreme bunching of random values from runif with Mersenne-Twister seed Nov 3 Tirthankar Chakravarty Extreme bunching of random values from runif with Mersenne-Twister seed Nov 3 Daniel Nordlund Extreme bunching of random values from runif with Mersenne-Twister seed Nov 4 Duncan Murdoch Extreme bunching of random values from runif with Mersenne-Twister seed Nov 5 Tirthankar Chakravarty Extreme bunching of random values from runif with Mersenne-Twister seed Nov 5 Peter Dalgaard Extreme bunching of random values from runif with Mersenne-Twister seed Nov 5 Paul Gilbert Extreme bunching of random values from runif with Mersenne-Twister seed Nov 5 Serguei Sokol Extreme bunching of random values from runif with Mersenne-Twister seed Nov 6 Duncan Murdoch Extreme bunching of random values from runif with Mersenne-Twister seed Nov 6