[Numpy-discussion] Random number generators

Robert Kern robert.kern at gmail.com
Mon Sep 4 00:51:19 CDT 2006

A. M. Archibald wrote:

> In the same project I also noticed it would be nice to be able to
> (say) do "exponential(2+sin(arange(10)))" to get an array of
> exponentials with varying parameters.

Travis O. recently added this capability. The distribution parameters (loc, 
scale, alpha, whatever) are broadcast against each other using the same rules as 
ufunc parameters.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Numpy-discussion mailing list