rng algorithm python code example Example: generate random number python import random random.randint(lower, upper)