Skip to content

Commit 2d5db29

Browse files
Fix rng function call
1 parent 3be2d41 commit 2d5db29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robosuite/models/objects/composite/hammer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def init_quat(self):
233233
np.array: (x, y, z, w) quaternion orientation for the hammer
234234
"""
235235
# Randomly sample between +/- flip (such that the hammer head faces one way or the other)
236-
return np.array([0.5, -0.5, 0.5, -0.5]) if self.rng.rand() >= 0.5 else np.array([-0.5, -0.5, -0.5, -0.5])
236+
return np.array([0.5, -0.5, 0.5, -0.5]) if self.rng.random() >= 0.5 else np.array([-0.5, -0.5, -0.5, -0.5])
237237

238238
@property
239239
def handle_geoms(self):

0 commit comments

Comments
 (0)