Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

what technology format could be used to generate fifteen random numbers…

Question

what technology format could be used to generate fifteen random numbers between 1 and 850? choose the correct answer below. a. randint(15,850) b. randint(1,850,15) c. randint(fifteen,1,850) d. randint(1,850)

Explanation:

Step1: Understand random - number generation function

In many programming languages and software with random - number generation functions like RandInt, the typical format is RandInt(min, max, num) where min is the minimum value of the range, max is the maximum value of the range, and num is the number of random numbers to generate.

Step2: Identify the correct parameters

We want 15 random numbers between 1 and 850. So, min = 1, max = 850, and num=15. The correct format should be RandInt(1,850,15).

Answer:

B. RandInt(1,850,15)