From: Charles R H. <cha...@gm...> - 2006-10-24 00:21:31
|
On 10/23/06, Tim Hochberg <tim...@ie...> wrote: > > Albert Strasheim wrote: > > Hello all > > > > I'm trying to generate random 32-bit integers. None of the following > seem to > > do the trick with NumPy 1.0.dev3383: > > > > In [32]: N.random.randint(-2**31, 2**31-1) > > ValueError: low >= high > > There should be a raw output from mtrand somewhere that gives random uint32 output which you might be able to cast somehow. Really, there should also be a signed output somewhere but I haven't looked closely at the mtrand interface. Chuck |