Tweeted By @yaroslavvb
Lesson of the day -- double-check endpoints in Python. Two of these include 6: np.random.randint(1, 6), random.randint(1, 6), range(1, 6), torch.range(1, 6)
— Yaroslav Bulatov (@yaroslavvb) December 16, 2019
Reason - functions ported from 1-indexed languages like R/Matlab/Lua use "endpoint-included convention.