generator/windsock.py
def device_running():
    """Device has a 1% chance of failing on each run"""
    if random.randint(0, 100) == 23:
        return False
    else:
        return True
Device has a 1% chance of failing on each run
Device has a 1% chance of failing on each run
Device has a 1% chance of failing on each run
def device_running():
    if random.randint(0, 100) == 23:
        return False
    else:
        return True
def device_running ( ) : if random . randint ( 0 , 100 ) == 23 : return False else : return True
Device has a 1% chance of failing on each run
Device has a 1% chance of failing on each run
"""Device has a 1% chance of failing on each run"""