Q:

Randomly choose a number in a specific range with a specific multiple in python

I have the following numbers:
100, 200, 300, 400 ... 20000
And I would like to pick a random number within that range. Again, that range is defined as 100:100:20000. Furthermore, by saying 'within that range', I don't mean randomly picking a number from 100->20000, such as 105. I mean randomly choosing a number from the list of numbers available, and that list is defined as 100:100:20000. 
How would I do that in Python?

A:

Use random.randrange :
random.randrange(100, 20001, 100)

A:

For Python 3:
import random

random.choice(range(100, 20100, 100))

