The numarray.random_array module (in conjunction with the numarray.random_array.ranlib submodule) provides a high-level interface to ranlib, which provides a good quality C implementation of a random-number generator.