Skip to content

Commit

Permalink
Made RandomIntInput consistent with RandomInt
Browse files Browse the repository at this point in the history
  • Loading branch information
nspielbau authored and Oberacda committed Oct 28, 2024
1 parent 9e82337 commit 7a884ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros_bt_py/ros_bt_py/nodes/random_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ def _do_untick(self):
)
)
class RandomIntInputs(Leaf):
"""Provides a pseudo-random integer in range min <= random_number < max."""
"""Provides a pseudo-random integer in range min <= random_number <= max."""

def _do_setup(self):
pass

def _do_tick(self):
validate_range(self.inputs["min"], self.inputs["max"])
self.outputs["random_number"] = random.randrange(
self.inputs["min"], self.inputs["max"]
self.inputs["min"], self.inputs["max"] + 1
)
return NodeMsg.SUCCEEDED

Expand Down

0 comments on commit 7a884ac

Please sign in to comment.