18.5k views
5 votes
Which of the following will assign a random number in the range of 1 through 50 to the variable number?

a. random(1,50) = number
b. number = random.randint(1, 50)
c. randint(1, 50) = number
d. number = random(range(1, 50))

User Lilbyrdie
by
5.9k points

1 Answer

3 votes

Answer: B. number = random.randit (1, 50)

User SubhoM
by
5.9k points