Answer the question
In order to leave comments, you need to log in
Need help with a bot, how to add a numerical random?
There is a base, very good performers, I want to put it into the bot and make it paid, I sort of figured it out, but I can’t figure it out, the main condition is that when the customer chooses a category, for example, a targetologist, he will be given a random person out of 20 possible, how to do this?
Answer the question
In order to leave comments, you need to log in
https://docs.python.org/3/library/random.html
Similar questions have been asked here many times.
Use search.
import random
movie_list = ['The Godfather', 'The Wizard of Oz', 'Citizen Kane', 'The Shawshank Redemption', 'Pulp Fiction']
moview_item = random.choice(movie_list)
print ("Randomly selected item from list is - ", moview_item)
moview_item = random.choice(movie_list)
print ("Randomly selected item from list is - ", moview_item)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question