47 lines
830 B
Python
47 lines
830 B
Python
import discord
|
|
import random
|
|
|
|
# Temporary List
|
|
games = ["Left 4 Dead 2",
|
|
"Aragami",
|
|
"Astroneer",
|
|
"Factorio",
|
|
"Borderlands",
|
|
"Stardew Valley",
|
|
"Viscera Cleanup Detail",
|
|
"SCP",
|
|
"Satisfactory",
|
|
"Backrooms (Alternate Ending)",
|
|
"Magicka 2",
|
|
]
|
|
|
|
def add_game(game: str):
|
|
games.append(game)
|
|
|
|
def pick_game():
|
|
|
|
randomIndex = random.randrange(0, len(games))
|
|
coinFlip = random.randrange(0, 2)
|
|
if coinFlip:
|
|
|
|
return f"Valorant ({games[randomIndex]})"
|
|
else:
|
|
|
|
return games[randomIndex]
|
|
|
|
I = 1000000000
|
|
i = I
|
|
zeros = 0
|
|
ones = 0
|
|
while i > 0:
|
|
number = random.randrange(0, 2)
|
|
if number:
|
|
ones += 1
|
|
|
|
else:
|
|
zeros += 1
|
|
i -= 1
|
|
|
|
percentZeros = zeros/I
|
|
print(percentZeros)
|