The expression Floor(Random()*6) produces the numbers_______ through_______ . (Note: this question has 2 parts; you must answer each part correctly to receive full marks.)


Question 6


The starting value of an algorithm used to generate a range of numbers is called the _________.


Question 7


If Number = 6, what is the range of possible numbers that can result from:


Floor(Random() * Number)


The range starts at .


The range ends at .


(Note, this question has 2 parts; you must answer each part correctly to receive full marks.)


Question 8


The ___________ function converts a floating point number to an integer by dropping the fractional part of the number. (For your answer, enter only the function, not any parameters that the function can carry.)

Relax

Respuesta :

Debel

Answer & Explanation:

First question:

0 through 5

Explanation: The range starts at 0 and maximum range of simple Random() is 0.9, hence 0 is starting range and end range is 0.9 * 6 = 5.4. After than Floor() will remove the fractional part resulting to 5  

Question 6:

It is called seed value, which decides the range of random numbers to be generated.

Question 7:

The range starts at 0

The range ends at 5

Explanation: The range starts at 0 and maximum range of simple Random() is 0.9, hence 0 is starting range and end range is 0.9 * 6 = 5.4. After then Floor() will remove the fractional part resulting to 5

Question 8:

Floor() converts a floating point to an integer dropping the fractional part.