Ask Question
24 December, 12:19

In order to generate a random number, you must use Math. random (). Group of answer choices True False

+5
Answers (1)
  1. 24 December, 15:53
    0
    False

    Explanation:

    While Math. random () can be used to generate a random number, Java programming language also has a class called Random in the java. util package which can be imported into your code. This is a more efficient way of generating random numbers (ints or doubles) as you can instantiate several random number generators. The following line of code creates an an object of the class Random and sets the bound to 10.

    Random rand = new Random (10);

    This will generate random number from 0-9.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “In order to generate a random number, you must use Math. random (). Group of answer choices True False ...” 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