Q:

Generate a random  real number in the range (0, 20)

0

 Generate a random

  1.  real number in the range (0, 20) 
  2. real number in the range (20, 50)
  3.  integer in the inclusive range from 1 to 10
  4. integer in the inclusive range from 0 to 10
  5.  integer in the inclusive range from 50 to 100 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer :

  1. rand * 20
  2. rand*(50-20)+20
  3. randi(10) 
  4.  randi([0, 10])
  5. randi([50, 100]) 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now