generate functionTue, 07 Mar 2023

print a random number with 12 decimal places in the range from 0 to n where n is a fractional number.

def print_random_number(n): from random import random print(random()*n)

Want to kickstart your project?Use the new AI Studio to create your code