I have a list which currently has 2 objects. I do this calculation to get one of them randomly:
import random
list = ["1", "2"]
r = random.randint(0, len(list) - 1)
This had to output value between 0 and 1, but it outputs value between 0, 1 and 2. Why?