Ask coding questions

← Back to all posts
help
AntonioFelix3

Hello Guys im new to py anyone care to help im trying to build a random life choices type of thing any idea how

Voters
AntonioFelix3
Comments
hotnewtop
JBloves27

Using the random module would solve your problem.

The function you could use would be random.randint() for a random number, and random.choice(), where inside .choice would be a list.

ZetaCommand

Using the random module, you can call the random.randint() function.

MrVoo

Use the random module