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 helping verb agrees with the subject and correctly completes the verb phrase? Tomatoes __________ considered fruit. A. is B. was C. has D. are
After 1 month, the book club had 5 members. The number of club members doubled every month. How many members did the club have after 4 months? [ ]
The general equation of a plane is Ax + By + Cz = D, where A, B, C, and D are real numbers and A is nonnegative. Find the equation of the plane containing the p
Help! Please! Explain why inequalities of the form x>c or x<c, where c is any rational number, have infinitely many solutions.
what is 17 8/12 - 12 3/12?
White blood cell carried in the lymphatic system is what?
With what force will a car hit a tree if the car has a mass of 3000 kg and it is accelerating at a rate of 2 m/s2? 6000N 1500 N 1000 N 300 N
What influence does the president have over congress?
The Constitution reflects the principle "republicanism" because it a) required the first president to be from a specific political party b) creates a national g
How did President Truman exercise increased presidential powers while in office?