Don't know if that of any use to be on PolyMath but I found that quick & dirty way of rapidly detecting if a RNG suffers from big problems. Can be useful if, with a single glance, you can avoid running a gazillion statistical tests for nothing since the RNG is obviously broken. Just try the following code in a workspace :
"References:
https://www.random.org/analysis/
https://boallen.com/random-numbers.html
"
| form colors yourFavoriteRNG size |
size := 512.
yourFavoriteRNG := Random new.
colors := Array with: Color white with: Color black.
form := Form extent: size@size depth: 32.
0 to: (size-1) do: [ :x |
0 to: (size-1) do: [ :y | form colorAt: (x@y) put: (colors atRandom: yourFavoriteRNG) ] ].
PNGReadWriter putForm: form onFileNamed: 'test.png'.
--
You received this message because you are subscribed to the Google Groups "PolyMath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymath-project/87c5118f-1a63-4c81-9064-ba86143f53a4%40googlegroups.com.