Skip to content

Commit 485926e

Browse files
andreh7jnothman
authored andcommitted
DOC docstring of rand_int value range (scikit-learn#8777)
1 parent 24653e8 commit 485926e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/tree/_utils.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ cdef inline np.ndarray sizet_ptr_to_ndarray(SIZE_t* data, SIZE_t size):
7171

7272
cdef inline SIZE_t rand_int(SIZE_t low, SIZE_t high,
7373
UINT32_t* random_state) nogil:
74-
"""Generate a random integer in [0; end)."""
74+
"""Generate a random integer in [low; end)."""
7575
return low + our_rand_r(random_state) % (high - low)
7676

7777

0 commit comments

Comments
 (0)