S
S
serafimpenza2020-06-03 03:05:10
Python
serafimpenza, 2020-06-03 03:05:10

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

2 answer(s)
A
Andrew, 2020-06-03
@serafimpenza

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)

A
alekssamos, 2020-06-03
@alekssamos

limit 1 offset random()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question