1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mandarinka [93]
2 years ago
7

In python, how would I randomize numbers and insert them into a file?

Engineering
1 answer:
BabaBlast [244]2 years ago
7 0
Random integer values can be generated with the randint() function. This function takes two arguments: the start and the end of the range for the generated integer values. Random integers are generated within and including the start and end of range values, specifically in the interval [start, end].
You might be interested in
Air is compressed by a 30-kW compressor from P1 to P2. The air temperature is maintained constant at 25°C during this process as
adell [148]

Answer:

-0.1006Kw/K

Explanation:

The rate of entropy change in the air can be reduced from the heat transfer and the air temperature. Hence,

ΔS = Q/T

Where T is the constant absolute temperature of the system and Q is the heat transfer for the internally reversible process.

S(air) = - Q/T(air) .......1

Where S.air =

Q = 30-kW

T.air = 298k

Substitute the values into equation 1

S(air) = - 30/298

= -0.1006Kw/K

4 0
2 years ago
Annealing is a process by which steel is reheated and then cooled to make it less brittle. Consider the reheat stage for a 100-m
zvonat [6]

Answer:

T = 858.25 s

Explanation:

Given data:

Reheat stage for a 100-mm-thick steel plate ( 7830 kg/m3,  c 550 J/kg K, k 48 W/m K),

initial uniform temperature ( Ti ) = 200 c

Final temperature = 550 c

convection coefficient  = 250 w/m^2 k

products combustion temp = 800 c

calculate how long the plate should be left in the furnace ( to attain 550 c )

first calculate/determine the Fourier series Number ( Fo )

\frac{T_{0}-T_{x}  }{T_{1}-T_{x}  } = C_{1} e^{(-0.4888^{2}*Fo )}

= 0.4167 = 1.0396e^{-0.4888*Fo}

therefore Fo =  3.8264

Now determine how long the plate should be left in the furnace

Fo = (\frac{k}{pc_{p} } ) ( \frac{t}{(L/2)^2} )

k = 48

p = 7830

L = 0.1

Input the values into the relation and make t subject of the formula

hence t = 858.25 s

8 0
3 years ago
Which of the following statements about resistance is TRUE?
valentina_108 [34]

Answer:

I think it's the no 3rd

Explanation:

hope this helps

3 0
2 years ago
The 1000-lb elevator is hoisted by the pulley system and motor M. The motor exerts a constant force of 500 lb on the cable. The
klemol [59]

The power that must be supplied to the motor is 136 hp

<u>Explanation:</u>

Given-

weight of the elevator, m = 1000 lb

Force on the table, F = 500 lb

Distance, s = 27 ft

Efficiency, ε = 0.65

Power  = ?

According to the equation of motion:

F = ma

3(500) - 1000 = \frac{1000}{32.2} * a

a = 16.1 ft/s²

We know,

v^2 - u^2 = 2a (S - So)\\\\v^2 - (0)^2 = 2 * 16.1 (27-0)\\\\v = 29.48m/s

To calculate the output power:

Pout = F. v

Pout = 3 (500) * 29.48

Pout = 44220 lb.ft/s

As efficiency is given and output power is known, we can calculate the input power.

ε = Pout / Pin

0.65 = 44220 / Pin

Pin = 68030.8 lb.ft/s

Pin = 68030.8 / 500 hp

     = 136 hp

Therefore, the power that must be supplied to the motor is 136 hp

5 0
3 years ago
A good rule of thumb in hazardous conditions is to _____.
Aloiza [94]

Answer:

C. Have your hazard lights on

Explanation:

Speeding up will cause an accident

Counter steering is not easy to do

Slowing down my result in you being rear ended

5 0
2 years ago
Read 2 more answers
Other questions:
  • A shrinkage limit test is performed on a soil. The initial mass and volume of the soil are: V1=20.2cm^3 , while the final mass a
    15·1 answer
  • A room is cooled by circulating chilled water through a heat exchanger located in the room. The air is circulated through the he
    15·1 answer
  • What is the Principle of Entropy Increase?
    9·1 answer
  • Consider a 0.15-mm-diameter air bubble in a liquid. Determine the pressure difference between the inside and outside of the air
    10·1 answer
  • Importance of civil engineering in nepal?​
    10·1 answer
  • A reciprocating engine of 750mm stroke runs at 240 rpm. If the length of the connecting rod is 1500mm find the piston speed and
    9·1 answer
  • Write a program that uses while loops to perform the following steps: Step a: Prompt the user to input two integers: firstNum an
    12·1 answer
  • Suggest how the following requirements might be rewritten in a
    8·1 answer
  • A compressor receives air at 290 K, 95 kPa and shaft work of 5.5 kW from a gasoline engine. It should deliver a mass flow rate o
    7·1 answer
  • By using a book of the OHS Act, Act 85 of 1993, find the act or regulation where the following extraction comes from "every empl
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!