Computer Science
Which of the following random module functions generates a floating point number ?
- random()
- randint()
- uniform()
- all of these
Python Libraries
2 Likes
Answer
random()
uniform()
Reason — Random module functions random() and uniform()
both return random floating point number .
Answered By
1 Like
Related Questions
Which command(s) modifies the current namespace with the imported object name ?
- import <module>
- import <module1>, <module2>
- from <module> import <object>
- from <module> import *
Which command(s) creates a separate namespace for each of the imported module ?
- import <module>
- import <module1>, <module2>
- from <module> import <object>
- from <module> import *
Which of the following random module functions generates an integer ?
- random()
- randint()
- uniform()
- all of these
Which file must be a part of a folder to be used as a Python package ?
- package.py
- __init__.py
- __package__.py
- __module__.py