Recently, I saw a reference to an interesting piece from 2013 by Peter Grogono, a computer scientist now retired from Concordia University. It's to do with checking the &quot;quality&quot; of a (pseudo-) random number generator.
Specifically, Peter discusses what he calls &quot;The Pickover Test&quot;. This refers to the following suggestion that he attributes to Clifford Pickover (1995, Chap. 31):
&quot;Pickover describes a simple but quite effective technique for testing RNGs visually. The idea is to generate random numbers in groups of three, and to use each group to plot a point in spherical coordinates. If the RNG is good, the points will form a solid sphere. If not, patterns will appear. 
When it is used with good RNGs, the results of the Pickover Test are rather boring: it just draws spheres. The test is much more effective when it is used with a bad RNG, because it produces pretty pictures.&quot; Peter provides some nice examples of such pretty pictures!I thought that it would be interesting to apply the Pickover Test to random numbers produced by the (default) RNG's for various distributions in R.
Before looking at the results, note that is the support of the distribution in question is finite (e.g., the Beta distribution), then the &quot;solid sphere&quot; that is referred to in the Pickover Test will become a &quot;solid box&quot;. Similarly, if the support of the distribution is the real half-line (e.g., the Chi-Square distribution), the &quot;solid sphere&quot; will become a &quot;solid quarter-sphere&quot;.
You can find the R code that I used on the code page that goes with this blog. Specifically, I used the &quot;rgl&quot; package for the 3-D plots.
Here are some of my results, in each based on a sequence of 33,000 &quot;triplets&quot; of random numbers:
(i) Standard Normal (using &quot;rnorm&quot;)
(ii) Uniform on [0 , 1] (using &quot;runif&quot;)
(iii) Binomial [n = 100, p = 0.5] (using &quot;rbinom&quot;)
(iv) Poisson [mean = 10] (using &quot;rpois&quot;)
(v) Standard Logistic (using &quot;rlogis&quot;)
(vi) Beta [1 , 2] (using &quot;rbeta&quot;)
(vii) Chi-Square [df = 5] (using &quot;rchisq&quot;)
(vii) Student-t [df = 3] (using &quot;rt&quot;)
(viii) Student-t [df = 7] (using &quot;rt&quot;)
On the whole, the results look pretty encouraging, as you'd hope! One possible exception is the case of the Student-t distribution with relatively small degrees of freedom.
Note that if you run my R code you can rotate the resulting 3-D plots to change the viewing aspect by holding the left mouse key and moving the mouse. You can zoom in and out by &quot;scrolling&quot;.
ReferencesAdler, D., D. Murdoch, et al., 2017' 'rgl' package, version 0-98.1.Pickover, C., 1995. Keys to Infinity. Wiley, New York.© 2017, David E. Giles