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

What time what equals 315
Which of the following individuals, opposed by Southerners, won the presidential election of 1860?
Kelly measured 12 teaspoons of a drink mix. She had a measuring cup showing fluid ounces. What equivalent amounts, in tablespoons and fluid ounces, could she ha
Which shows one way to determine the factors of 12x3 – 2x2 + 18x – 3 by grouping?
Which sentence has a transitive verb? a. Mrs. Schwartz is a bird and reptile trainer. b. Daniel caught two fish with his fishing pole. c. When are you leaving?
$46 shoes 2.9 tax round to the nearest cent
I have 15 tens and 2 hundreds what number am i
the soccer team collected $800 at a car wash fundraiser. They charged $5.00 for small vehicles and $10.00 for larger vehicles. The amount collected can be model
Quince divided by cinco = _______. a. siete b. tres c. trece d. nueve
After WW II this organization partitioned the area of Palestine into the two countries of Palestine and Israel. a. World Court c. NATO b. League of Nations d