I’m using the random() function to simulate the roll of two dice. A button invokes two independent function calls for dice 1 and dice 2 and tracks combined results of the two die and also the number of doubles rolled.

The number of doubles rolled is 33%, TWICE the expected 16.67%. This skews the number of times I get a combined result of 2 or 12 in particular. I’m wondering if I’m implementing this wrong? Or is there some problem with calling random() in quick succession? Please see the shared doc: https://coda.io/@alanlarsen/random-test

Thanks for any helps or ideas!