Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In PYTHON please The following code will produce 5 pairs of random floating point numbers from 2 different random distributions: import random for nums in
In PYTHON please
The following code will produce 5 pairs of random floating point numbers from 2 different random distributions: import random for nums in range (0,5) : r1= random.triangular (50,150,75) r2= random. uniform (5,150) r1 will generate number between 50 and 150 (with a mode of 75) r2 will generate a number between 5 and 150 . provide a single print function statement (to be run inside the loop) that will output each pair of numbers to the console, separated by a colon with 2 decimal places and lined up on the decimal. For exampleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started