pseudo-random

How to quantify the quality of a pseudorandom number generator?

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 ...

Get random number that does/doesn't match criteria (PHP)

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...

Randomness in Jython

When using (pseudo) random numbers in Jython, would it be more efficient to use the Python random module or Java's random class? ...

TSQL Pseudo Random text generator

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...