Ask Question
15 December, 12:48

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

+3
Answers (1)
  1. 15 December, 12:56
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers