Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use numpy random seed of 20200213 initially (to begin with) to generate (print out) random number one at a time between 0.0 and 9.9 (both

Use numpy random seed of 20200213 initially (to begin with) to generate (print out) random number one at a time between 0.0 and 9.9 (both ends inclusive, one decimal, 0.0-9.9). Afterwards, in succeeding, change the seed to generate another random number, sum up the float output in one decimal point cumulatively till the summation exceeds 30.0 (> 30.0) then stops. Must print out the last operation result as well. Note: Each time (random number generation, RNG) add the integer part of the random number output into the random seed and become the new seed for another RNG process. See information below

Initial Seed: 20200213

Suppose that random # is 7.5

Take the 7 (integer part) add onto 20200213 and become 20200220. It becomes the new seed to generate another random number.

If 6.8 is the next RN, then take 6 and add to 20200220 to become 20200226 as new seed.

Add up 7.5 + 6.8 + 30.0..... till summation > 30.0. Print out the last summation.

Use numpy random seed of 20200213 initially (to begin with) to generate (print out) random number one at a time between 0.0 and 9.9 (both ends inclusive, one decimal, 0.0-9.9). Afterwards, in succeeding, change the seed to generate another random number, sum up the float output in one decimal point cumulatively till the summation exceeds 30.0 > 30.0) then stops. Must print out the last operation result as well. Note: Each time (random number generation, RNG) add the integer part of the random number output into the random seed and become the new seed for another RNG process. See illustration on the right. Initial Seed: 20200213 Suppose that random # is 7.5 Take the 7 integer part) add onto 20200213 and become 20200220. It becomes the new seed to generate another random number. If 6.8 is the next RN, then take 6 and add to 20200220 to become 20200226 as new seed. Add up 7.5 + 6.8 + ... till summation > 30.0. Print out the last summation.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions