Commit a5edfc6c authored by Martin Reinecke's avatar Martin Reinecke
Browse files

bug fix

parent a06601c5
......@@ -47,7 +47,7 @@ class Random(object):
def uniform(dtype, shape, low=0., high=1.):
if issubclass(dtype, (complex, np.complexfloating)):
x = np.empty(size, dtype=dtype)
x = np.empty(shape, dtype=dtype)
x.real = (high - low) * np.random.random(shape) + low
x.imag = (high - low) * np.random.random(shape) + low
elif dtype in [np.dtype('int8'), np.dtype('int16'), np.dtype('int32'),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment