Q:

Calculate multiplication of two random float numbers using python programming

belongs to collection: Random Data Generation Exercises

0

Calculate multiplication of two random float numbers

Note:

  • First random float number must be between 0.1 and 1
  • Second random float number must be between 9.5 and 99.5

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import random

num1  = random.random()
print("First Random float is ", num1)
num2 = random.uniform(9.5, 99.5)
print("Second Random float is ", num1)

num3 = num1 * num2
print("Multiplication is ", num3)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Generate random secure token of 64 bytes and rando... >>
<< Generate a random Password which meets the followi...