Ask Question
Today, 16:22

What is the possible output from system. out. println ((int) math. random () * 4) ?

+5
Answers (1)
  1. Today, 20:00
    0
    int randomWithRange (int min, int max) {

    int range = (max - min) + 1;

    return (int) (Math. random () * range);

    }

    Output of randomWithRange (2, 5) 5 times:

    3 0 1 1 0
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the possible output from system. out. println ((int) math. random () * 4) ? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers