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

I need some help please. :PP
2.7 centimeters in 3 seconds x centimeters in 4 seconds
After the Pullman Strike ended, the majority of the workers resigned from the union and were rehired by the company. left the state for job opportunities elsewh
Consider the quadratic function f(p) = p^2 -8p-5 what are the values of the coefficients and the constant in the function
Who was the first emperor of Mexico
Who was the first president?
The creation of a plat for a townsite would indicate __________. A. where roads and buildings would be located B. which individuals would be able to live in the
Please help me :PPPPPPPP
All disorders listed belo"in humans, the ability to roll the tongue is a dominant trait; the inability to roll the tongue is a recessive trait." if an individua
Escoja todo lo que se encuentra en Puerto Rico. la historia de los tainos los gauchos la pelea de gallos las tortillas el juego de dominĂ³ en las plazas centrale