random in range numpy code example Example: random range python from random import randrange print(randrange(10))