Guest User

Untitled

a guest
Apr 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. class Range
  2. def rand
  3. return first if exclude_end? && last == first
  4. Kernel::rand(last - first + (exclude_end? ? 0 : 1)) + first
  5. end
  6. end
Add Comment
Please, Sign In to add comment