mercredi 17 avril 2019

How do I store a random.randint() for later?

I'm trying to save a random.randint() value in python and use it for later for a chatbot I'm making.

For example, if the user asked 'how awesome is (name)?' it'd output something like, '12%'. Then I'd want to code something where if it detects that name, it uses the same number as it did before (12).




Aucun commentaire:

Enregistrer un commentaire