Which of the following random module function generate a floating point number?
Answers
Generating Random Float in Python
The random module has range() function that generates a random floating-point number between 0 (inclusive) and 1 (exclusive).
MARK ME AS BRAINLIEST
Concept Introduction:
The built-in module for generating the pseudo-random variables is called the random module. It can be used to carry out random actions like selecting a random number, choosing items at random from a list, randomly shuffling items, etc.
Explanation:
We have been given a question about random module function generation.
We have to find which random module function can generate a floating point number.
The range() function in the random module produces a random floating-point value between and at random (exclusive). To create a floating-point number in between a specified range, there is no distinct procedure. Simply multiply it by the desired range to achieve that.
Final Answer:
Range() can generate a floating point number.
#SPJ3