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

Which statement is always true?
The measure of angle 3 is 42°. What is the measure of angle 1 in degrees?
now that you are familiar with the way Roman numerals are written, try using them to do simple calculations. Add the following numbers together. Write the sum i
how to find the diameter with area sector
If you earn $33 in eight hours at that rate how much would you earn in five hours
japan displayed the strenght of its modernized military in wars against ​
Who comes to live with the franks and the Van Daans in the annex to become the eighth resident?
Why did Roger Williams establish a colony in Rhode Island? A. The climate made it a good location. B. The people of Rhode Island needed him. C. He was banis
The biosphere can best be defined as
explain in your own words rebirth and classical