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

4. Consider Limitations Students were given the following sets of items and asked, for each set, to identify which item had greater thermal energy. For which se
Choose multiple correct answers.
If m ∠ D A B = 47 ° , then m ∠ B A E = degrees.
If the airplane in Problem 4 begins its descent at an altitude of 4000 feet, what is its straight-line distance to the airport?
According to a cookie recipe, I need 3 large eggs if I need to make 38 cookies. Now, you want to make 300 cookies for a bake sale. How many eggs do I need? O 25
HELP ASAP NEED HELP WRITING IT
Why do second-generation h1 blockers cause less sedation then first-generation h1 blockers?
Dale works as an insurance underwriter. What kind of education would Dale likely have needed for this position? a) apprenticeship with a car mechanic b) bachelo
The threshold sensitivity of the eye is 100 photons per second. the eye is most sensitive at 550 nm. determine the threshold power (watts) the eye can detect.
Which type of resource allocation system is the most biased in favor of wealthy people?