Examlex

Solved

What Will Be the Range of the Random Numbers Generated

question 51

Multiple Choice

What will be the range of the random numbers generated by the following code snippet?
Int r1 = (int) (Math.random() * 50) + 1;


Definitions:

Ability

The possession of the means or skill to do something.

Intersection

In mathematics and set theory, the set of elements that are common to two or more sets.

Union

A mathematical operation in set theory denoting the set of all distinct elements that are in either of two or more sets.

Sample Space

The set of all possible outcomes or results that can occur from a specific statistical experiment.

Related Questions