Answered You can hire a professional tutor to get the answer.

QUESTION

one of the following expressions will yield a random integer value from 2 to 50 inclusive (in other words, including both 2 and 50 as possibilities)?...

Which one of the following expressions will yield a random integer value from

2 to 50 inclusive (in other words, including both 2 and 50 as possibilities)?

A. (int) (Math.random() * 50) - 2

B. (int) (Math.random() * 50) + 2

C. (int) (Math.random() * 49) + 2

D. (int) (Math.random() * 48) + 2

E. none of the above will work!

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question