Skip to content

Commit 0e79fa3

Browse files
committed
fixed issue#56
1 parent d7eb1b2 commit 0e79fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spatialmath/pose3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ def Rand(cls, N=1, xrange=(-1, 1), yrange=(-1, 1), zrange=(-1, 1)): # pylint: d
12051205
"""
12061206
X = np.random.uniform(low=xrange[0], high=xrange[1], size=N) # random values in the range
12071207
Y = np.random.uniform(low=yrange[0], high=yrange[1], size=N) # random values in the range
1208-
Z = np.random.uniform(low=yrange[0], high=zrange[1], size=N) # random values in the range
1208+
Z = np.random.uniform(low=zrange[0], high=zrange[1], size=N) # random values in the range
12091209
R = SO3.Rand(N=N)
12101210
return cls([base.transl(x, y, z) @ base.r2t(r.A) for (x, y, z, r) in zip(X, Y, Z, R)], check=False)
12111211

0 commit comments

Comments
 (0)