I wanted to make a random number generator, which picks a random number from a list... I came up with this but everytime I run it its 0 and I dont know where the problem is... Thanks for helping :>
async def on_message(self, message):
seed(1)
sequence = [i for i in range(2)]
print(sequence)
if message.content.startswith("test"):
for _ in range(1):
value = choice(sequence)
if value == 0:
await message.channel.send("0")
if value == 1:
await message.channel.send("1")
Aucun commentaire:
Enregistrer un commentaire