Ask Question
18 December, 08:00

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

+5
Answers (1)
  1. 18 December, 08:30
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers