Computer Science, asked by vivekgupta2014072, 8 months ago

Which of the following random module function generate a floating point number?​

Answers

Answered by dhanusus
1

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

Answered by setukumar345
0

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 0 and 1 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

Similar questions