Computer Science
Which of the following is not a function/method of the random module in Python ?
- randfloat()
- randint()
- random()
- randrange()
Python Libraries
3 Likes
Answer
randfloat()
Reason — Some most common random number generator functions in random module are random(), randint(), uniform(), randrange(). Hence, randfloat() is not a function of random module.
Answered By
3 Likes
Related Questions
Which file must be a part of a folder to be used as a Python package ?
- package.py
- __init__.py
- __package__.py
- __module__.py
A python module has …………… extension.
- .mod
- .imp
- .py
- .mpy
Fill in the blanks:
The file _________ must be the part of the folder holding library files and other definitions in order to be treated as importable package.
Fill in the blanks:
A _________ refers to a collection of modules that together cater to specific type of needs or applications.