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
A piston-cylinder device contains 0.58 kg of steam at 300°C and 0.5 MPa. Steam is cooled at constant pressure until one-half of
Mumz [18]

Answer:

a) Tբ = 151.8°C

b) ΔV = - 0.194 m³

c) The T-V diagram is sketched in the image attached.

Explanation:

Using steam tables,

At the given pressure of 0.5 MPa, the saturation temperature is the final temperature.

Right from the steam tables (A-5) with a little interpolation, Tբ = 151.793°C

b) The volume change

Using data from A-5 and A-6 of the steam tables,

The volume change will be calculated from the mass (0.58 kg), the initial specific volume (αᵢ) and the final specific volume

(αբ) (which is calculated from the final quality and the consituents of the specific volumes).

ΔV = m(αբ - αᵢ)

αբ = αₗ + q(αₗᵥ) = αₗ + q (αᵥ - αₗ)

q = 0.5, αₗ = 0.00109 m³/kg, αᵥ = 0.3748 m³/kg

αբ = 0.00109 + 0.5(0.3748 - 0.00109)

αբ = 0.187945 m³/kg

αᵢ = 0.5226 m³/kg

ΔV = 0.58 (0.187945 - 0.5226) = - 0.194 m³

c) The T-V diagram is sketched in the image attached

3 0
3 years ago
Two balls are chosen randomly from an urn containing 8 white 4 black, and orange balls. Suppose that we win $ 2 for each black b
Scorpion4ik [409]
(-2,-10,-1,-2,-3,-4)
8 0
3 years ago
Consider an aircraft powered by a turbojet engine that has a pressure ratio of 9. The aircraft is stationary on the ground, held
77julia77 [94]

Answer:

The break force that must be applied to hold the plane stationary is 12597.4 N

Explanation:

p₁ = p₂, T₁ = T₂

\dfrac{T_{2}}{T_{1}} = \left (\dfrac{P_{2}}{P_{1}}  \right )^{\frac{K-1}{k} }

{T_{2}}{} = T_{1} \times \left (\dfrac{P_{2}}{P_{1}}  \right )^{\frac{K-1}{k} } = 280.15 \times \left (9  \right )^{\frac{1.333-1}{1.333} } = 485.03\ K

The heat supplied = \dot {m}_f × Heating value of jet fuel

The heat supplied = 0.5 kg/s × 42,700 kJ/kg = 21,350 kJ/s

The heat supplied = \dot m · c_p(T_3 - T_2)

\dot m = 20 kg/s

The heat supplied = 20*c_p(T_3 - T_2) = 21,350 kJ/s

c_p = 1.15 kJ/kg

T₃ = 21,350/(1.15*20) + 485.03 = 1413.3 K

p₂ = p₁ × p₂/p₁ = 95×9 = 855 kPa

p₃ = p₂ = 855 kPa

T₃ - T₄ = T₂ - T₁ = 485.03 - 280.15 = 204.88 K

T₄ = 1413.3 - 204.88 = 1208.42 K

\dfrac{T_5}{T_4}  = \dfrac{2}{1.333 + 1}

T₅ = 1208.42*(2/2.333) = 1035.94 K

C_j = \sqrt{\gamma \times R \times T_5} = √(1.333*287.3*1035.94) = 629.87 m/s

The total thrust = \dot m × C_j = 20*629.87 = 12597.4 N

Therefore;

The break force that must be applied to hold the plane stationary = 12597.4 N.

5 0
3 years ago
A disk of radius 2.1 cm has a surface charge density of 5.6 µC/m2 on its upper face. What is the magnitude of the electric field
Assoli18 [71]

Answer:

=6.3*10^3 N/C

Explanation:

solution:

from this below equation (1)

E=σ/2εo(1-\frac{z}{\sqrt{z^2-R^2} } )...........(1)

we obtain:

=5.6*10^-6 \frac{c}{m^2} /2(8.85*10^-12\frac{c^2}{N.m^2} ).(1-\frac{9.5 cm}{\sqrt{9.5^2-2.1^2} } )

=6.3*10^3 N/C

8 0
3 years ago
LINKS GET BODIED ON SITE! RAWR
bulgar [2K]

Answer:

False

Explanation:

MRK ME BRAINLIEST PLZZZZZZZZZZZZZZZZZZ

7 0
3 years ago
Other questions:
  • Match the word with the definition:
    6·2 answers
  • What are some of the main causes of accidents?
    7·1 answer
  • In order to impress your neighbors and improve your vision in traffic jams, you decide to mount a cylindrical periscope 2.0 m hi
    15·1 answer
  • 8–21 Heat in the amount of 100 kJ is transferred directly from a hot reservoir at 1200 K to a cold reservoir at 600 K. Calculate
    6·1 answer
  • Draw the hierarchy chart and then plan the logic for a program needed by Hometown Bank. The program determines a monthly checkin
    8·1 answer
  • What kind of value should an employee possess when employees are expected to be responsible and fair?
    5·1 answer
  • PLS HELP ME
    14·1 answer
  • Resistance depends on which three properties of a wire?
    15·1 answer
  • All the fnaf UNC charecters
    5·2 answers
  • What are the potential hazards relating to materials handling injuries?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!