1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
drek231 [11]
4 years ago
14

Java

Computers and Technology
1 answer:
VARVARA [1.3K]4 years ago
5 0

Answer:

Here are the two statements which use nextInt() to print two random integers between 0 and 9:

System.out.println(randGen.nextInt(10));

System.out.println(randGen.nextInt(10));

Explanation:

Here is the complete program:

import java.util.Scanner;   //to accept input from user

import java.util.Random;   // use to generate random numbers

public class DiceRoll {  //class definition

public static void main (String [] args)  {//start of main function  

Random randGen = new Random();   // creates a Random class object randGen

int seedVal = 0;   //sets starting point for generating random numbers

randGen.setSeed(seedVal);   //sets the seed of random number generator

System.out.println(randGen.nextInt(10));  //generates and prints the first random integer between 0 and 9 (10 is the range from 0 to 9) using nextInt method, which is used to get next random integer value from the sequence of random number generator

System.out.println(randGen.nextInt(10));   //generates and prints the second random integer between 0 and 9 (10 is the range from 0 to 9) using nextInt method

return;    }  }

Another way to write this is to initialize two int variables:

int integer1;

int integer2;

Now use two print statements to print these random integers between 0 and 9 as:

System.out.println(integer1= randGen.nextInt(10));

System.out.println(integer1= randGen.nextInt(10));

Another way to write this is:

Set the value of integer1 to a random number from 0 to 9 and same for integer2

int  integer1 = randGen.nextInt(10);

int  integer2 = randGen.nextInt(10);  

Now use two print statements to print these random integers between 0 and 9 as:  

System.out.println(integer1);

System.out.println(integer2);

You might be interested in
Which track-type can be used to control the master output levels of output and bus paths? Hint: When assigned to an active outpu
ss7ja [257]

Answer:

Master Fader

Explanation:

Master Fader is the core of any DL Series framework with a demonstrated, intuitive work process that comes out on top in industrial applications.

With a totally adjustable User Interface that is versatile for clients of any aptitude level, Master Fader is the most versatile control application accessible.

It can be used to control bus path or the levels of master output of the output.

4 0
4 years ago
HELP ASAP. Which of the following is the best example of an installation issue? A computer can’t find the file that it needs to
Svetlanka [38]

Answer:

The question is sufficiently broad that multiple answers would be likely candidates.  I would say though that the most likely "correct" answer is the last one - a program is incompatible with the OS.  That's definitely an issue with installing the wrong package.

Explanation:

With the first answer - A computer can't find the file it needs to perform an OS operation - that's more likely due to file corruption, accidental deletion, or some other event like that.  It could potentially be an issue with installation of the OS, but I doubt that's what's meant.

With the second answer - A computer displays errors and gives you a BSOD - this could be any number of issues, but installation is not the best candidate.

With the third - A user made an error while trying to set up a software - that depends on what they mean by "set up".  If they mean installation, then that's an acceptable answer.  If on the other hand they mean configuration, then it's not.

With the last - A computer program is not compatible with the system's OS - That is very definitely an issue with installation as far as it being installed on the wrong OS goes.  One could however say that the installation was successful, and that the choice of which package to install was a human error.

6 0
3 years ago
What does XD mean? I keep seeing people say it and I dont know what it means
Anna007 [38]

Answer: xD = haha

Explanation:

XD looks like a haha face laughing :P

have a good day :)

6 0
3 years ago
Read 2 more answers
Brenda also orders movies and television through the Internet via a(n) ____ provider, which allows users to download video for a
Novay_Z [31]

Brenda also orders movies and television through the Internet via a(n) VOD provider, which allows users to download video for a fee.

<h3>What is the meaning of the term VOD?</h3>

The term video-on-demand (VOD) is known to be a kind of technology made to send video content, such as movies and television programs, directly to specific customers for quick viewing.

Note that technology is constantly growing and one need to grow along with it. services that are good is often adopted by people.

Hence, Brenda also orders movies and television through the Internet via a(n) VOD provider, which allows users to download video for a fee.

Learn more about movies from

brainly.com/question/27936956

#SPJ1

5 0
2 years ago
Always refill your gas tank well before____.
mash [69]

Aloha~. My name is Zalgo and I am here to be of assistance with your problem. The answer to your question is D. The minimum amount of gas you can leave in your vehicle is 1/4 Full or 3/4 Empty. The most amount you will need is quite close to when your gas tank is full (so 1/4 Empty or 3/4 Full).

Hope this helps.

"Stay Brainly and stay proud!" - Zalgo

4 0
3 years ago
Read 2 more answers
Other questions:
  • matlab Write a function that iteratively appends random 1's and 0's to an array to form a binary number. The function returns th
    9·1 answer
  • You have a large company, and it is important to your business that your employees' work is backed up regularly. Which network w
    7·2 answers
  • When you compile your program, the compiler identifies the logic errors and suggests how to correct them?
    14·1 answer
  • _____ performs a real-time lookup of a digital certificate’s status. Group of answer choices Certificate Revocation List (CRL) R
    6·1 answer
  • Which one of the following is an example of hacktivism according to you and why?
    11·1 answer
  • Write a method intersect that accepts two sorted array lists of integers as parameters and returns a new list that contains only
    8·1 answer
  • Help<br><br> My internet won't work on my other pc i tried a lot to get it back
    9·2 answers
  • Simple example of hybrid computer​
    7·2 answers
  • Which JavaScript defense restricts a JavaScript downloaded from Site A from accessing data that came from Site B?
    6·1 answer
  • Which appears at the intersection of a column and row?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!