With numpy you can easily create test data with random_integers and randint.
numpy.random.randint(low, high=None, size=None, dtype='l') numpy.random.random_integers(low, high=None, size=None)
random_integers includes the high boundary while randint does not. Continue reading “numpy random choice”