generate functionTue, 07 Mar 2023

print a random number in the range from 0 to n where n is a fractional number

import random def rand(n): return random.random() * n rand(5)

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