Skip to content

Instantly share code, notes, and snippets.

@WyattCast44
Created July 5, 2020 03:27
Show Gist options
  • Save WyattCast44/967cc2102dbae2d9d2adc47a17b3229b to your computer and use it in GitHub Desktop.
Save WyattCast44/967cc2102dbae2d9d2adc47a17b3229b to your computer and use it in GitHub Desktop.
import time
import random
def getBaroAlts():
baroAlt1 = random.randint(0, 10)
baroAlt2 = random.randint(0, 10)
baroAlt3 = random.randint(0, 10)
return baroAlt1, baroAlt2, baroAlt3
def midLevelVoteValues(val1, val2, val3):
values = [val1, val2, val3]
values.sort()
return values[1]
while True:
baroAlt1, baroAlt2, baroAlt3 = getBaroAlts()
print("\nAll Baro Values:")
print(f"\tBaro 1: {baroAlt1}")
print(f"\tBaro 2: {baroAlt2}")
print(f"\tBaro 3: {baroAlt3}")
print(
f"Mid Level Voted Value: {midLevelVoteValues(baroAlt1, baroAlt2, baroAlt3)}")
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment