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. Using the diagram below, which equation can be used to find the length 2 points of AB? B 42 A 10 tan 42 = 10/AB tan 42 = AB/10 cos 42 = AB/10 cos 42 = 10/AB
Find the mean of the following set: 30, 16, 29, 14, 21
Orchid Biotech Company is evaluating several development projects for experimental drugs. Although the cash flows are difficult to forecast, the company has com
What is the potential energy of a train car that has a mass of 1600 kg sitting 120 meters above the track
Which of the following statements is an arguable claim supporting the position that Twinkies are better than doughnuts? Twinkies are the most delicious snack im
What’s the answer to this question
3 with the power of 5 equals 243 explain how to use that fat quickly evaluate 3 to the power of 6 ​
National security policy is a balancing act between
Which of the lines below is perpendicular to y= -2/5 A.y=-5/2x-9 B.y=-2/5x+8 C.y=5/2x+1 D.y=2/5x-3
What time what equals 398.50?