allioop384
allioop384 allioop384
  • 11-12-2020
  • Computers and Technology
contestada


To generate integers between and including - 10 to 10 you would use:

randint(-10, 10)

random.random()*20 +
-10

random.randint(-10, 10)

random.random(-10, 10)

Respuesta :

tonb
tonb tonb
  • 11-12-2020

Answer:

random.randint(-10, 10)

Explanation:

random.randint(a, b)

Return a random integer N such that a <= N <= b. Alias for randrange(a, b+1).

Answer Link

Otras preguntas

The Spanish club sold hot pretzels as a fundraiser. The pretzels normally sold for 2.00 but near the end of the sale the price was reduced by 25%. What was the
11+?÷4-?=9 I have been stumped on this for a while
WORTH 50 POINTSSS What is the equation of a line that is perpendicular to −x+3y=9 and passes through the point (−3, 2) ? Enter your equation in the box.
!!!BEST ANSWER GETS BRANLIEST!!! Can some body give me 3 solid argument on why canada should not give freshwater to other countries with evidence. In paragraph
Greg is running a marathon. While running, he should drink 22 ounces of water per hour. If he runs for 5 hours, how much water should he drink? A. 32 ounces
Factor Please b^8-a^b^4+1/4 a^4
Nancy’s morning routine involves getting dressed , eating breakfast, making her bed , and driving to work . Nancy spends 1/3 of the total time in the morning ge
decrease £250 by 15%
Write the possessive forms of these pronouns. A. He ___ B. She___ C. It____ D. They___ E. I___ F. We___ G. You___ H. Who___
Alice's freezer can be set to a range of temperatures, from -6^\circ−6 ∘ minus, 6, degree to -1^\circ−1 ∘ minus, 1, degree Celsius. When the temperature is -1^\