Skip to content

Commit

Permalink
DOC docstring of rand_int value range (scikit-learn#8777)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreh7 authored and jnothman committed Apr 22, 2017
1 parent 24653e8 commit 485926e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklearn/tree/_utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ cdef inline np.ndarray sizet_ptr_to_ndarray(SIZE_t* data, SIZE_t size):

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


Expand Down

0 comments on commit 485926e

Please sign in to comment.