random.sample python 3.7 code example Example: python random import random print(random.randint(0,1))