This library function returns a random floating point number within a specified range of values. The function returns a random floating point number N such that a <= N <= b for a <= b and b <= N <= a for b < a.

Respuesta :

Answer:

Hi, the question is incomplete.

The illustrations in the incomplete question above is similar to a library in python programming language.

I'll complete the question as follows;

This library function returns a random floating point number within a specified range of values. The function returns a random floating point number N such that a <= N <= b for a <= b and b <= N <= a for b < a. Write a python script to implement the above illustration.

Explanation:

The random.uniform(a,b) will return a random floating point number N such that a <= N <= b for a <= b and b <= N <= a for b < a

Though, the end-point value b may or may not be included in the range depending on floating-point that rounds the equation a + (b-a) * random().

The script goes as follows:

import random

a = float(input("Enter any number: "))

print("First Number: ", a)

b = float(input("Enter any number: "))

print("Second Number: ", b)

print("Random Number: ", random.uniform(a,b))