92.0k views
8 votes
How did you generate a random number for the user to guess?

A - by using the randint method from the random module
B - by using the built-in random function
C - by using the built-in randint function
D - by using the random method from the random module

User YasBES
by
3.2k points

2 Answers

6 votes

Answer:

B.

Step-by-step explanation:

I got it right on the test.

User Hellblazer
by
3.3k points
10 votes

Answer:

B

Step-by-step explanation:

The build in random function will work the best for your case. Have a marvelous day. :)

User Ecc
by
4.3k points