This is based on this question. A number of answers were proposed that generate non-uniform distributions and I started wondering how to quantify the non uniformity of the output. I'm not looking for patterning issues, just single value aspects.
What are the accepted procedures?
My current thinking is to computer the average Shannon ...
Using PHP (other languages, using common built-ins are welcome), how can I get a random (or pseudo-random) number that does NOT match a certain criteria?
IE: I want $x = rand(0, 99) but only if ($x % 9) != 0.
What is a clean acceptable way to constrain random numbers to a criteria like that?
As an example, using a while() loop, and p...
When using (pseudo) random numbers in Jython, would it be more efficient to use the Python random module or Java's random class?
...
I am doing some performance testing on a SQL sproc and just want to bang out a quick data generator for testing.
I am after a simple way to generate a pseudo random (true random not needed in this case) varchar field.
Ideas I have so far is having a character definition of valid characters that can be used and then build the string fro...