Question

Which of the following statements will produce a random floating point value between -10.0 and +15.0?
Select one:

a.
rand = random.uniform(-10.0, 15.0)


b.
rand = random.random(-10.0, 15.0)


c.
rand = random.random() * 10 - 15


d.
rand = random.randrange(-10, 15)

Answers

There are no human answers yet.
Answered by GPT 3.5
a. rand = random.uniform(-10.0, 15.0)

Related Questions