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

when did muhammad begin teaching people about islam
what is the easiest way to go this math problem 8tr+10t +14t + 13
PLEASE HELP I GIVE THANKS
Help me on this problem: Karen collects 6/7 qt rainwater. She uses 1/2 of the water to clean her bicycle and uses the remaining water equally for 3 houseplants
if matt filled a 2 1/5 cup container, how many 1/5 cups would he need to use?
the temporary capital of the united states in 1789 ?
4(1-3n)-14> 4(2n+3)-9n
What do kids wear to school in Germany?
In the number 8444 what is the relationship betwee n the 4s? Think about the value of each 4 to help you find your answer
if the same amount of work needed to keep a 100W light bulb lit for one hour could be used to lift a 2000 kg SUV, what height could it be lifted to?