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

mr white has 115 tulips tovdivide equally between her 7 grandchildrens how many dollars will she have left over
A clockwise rotation of 90 is the same as a counterclockwise rotation of
use binomial thereom to expand (x+6)³
Discussion Question: Amy underwent burr hole surgery for biopsy of an intracranial lesion. The surgeon, Dr. Stanley, had to perform an abscess drainage of a cy
Read the excerpt from Sir Gawain and the Green Knight, and complete the paragraph that follows. But finding none that would carp with him, he exclaims, "What! i
What aspect of romantic writing did realist writers disapprove of? A. realistic settings B. boring plots C. the use of everyday events D. the fanciful treatment
When two species contain identical or nearly identical proteins, and hence nearly identical dna, this suggests?
where does tRNA comes from?how is it made?
how is heterozygous individual represented in the punnett square and pedigree
If a marble is released from a height of 10 m how long would it take for it to hit the ground?