import random


def stat_check(stat1, stat2):
    """
    Checks if stat1 wins over stat2 in competitive stat check.
    """
    roll1 = random.randrange(stat1)
    roll2 = random.randrange(stat2)
    return roll1 >= roll2