answersLogoWhite

0


Best Answer

public class Random {

public static void main(String ss[])

{

int sum=0;

java.util.Random diceRoller = new java.util.Random();

for (int i = 0; i < 10; i++) {

int roll = diceRoller.nextInt(6) + 1;

sum+=roll;

System.out.println(roll);

}

System.out.println(sum);

}

}

for more queries:- kumar976001@gmail.com

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you print ten random numbers and their sum please answer it using simple java language used in the 8th grade?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why is a frame necessary to obtain a simple random sample?

because it is the list that is used for assigning numbers to individual in the population.


What is the difference between simple random sampling and random sampling?

Simple!


Why do you use pseudorandom numbers in simulation?

Generation of random numbers is not a simple process. In order for a number to be truly random it must be uniformly distributed (each random number in the interval of random numbers has equal chance of being selected), efficiently generated (the random numbers hsould not degenerate into constant values or recycle too frequently) and absent of patterns. Computers can generate random numbers using a mathematical process that artificially creates psuedorandom numbers more efficiently than true random numbers can be generated in a process akin to spinning the roulette wheel.


Is cluster sampling random?

It can be but it is not simple random sampling.


How do you write ''simple'' in yugoslavian?

There is no such language as "Yugoslavian." Please specify: Bosnian, Macedonian, Croatian, Serbian, or Slovene.


What is simple random sampling and stratified random sampling?

yes


Is polling 648 parents and 648 non parents a simple random sample?

Yes, such numbers could be used to get a reasonable cross-section of opinion.


Simple c language program?

Well, this is a very open question, please be specific, I will try try to answer this as well, a simple c language program can be any thing from printing your name on the screen to printing some patterns using symbols, or making a small game, or a simple calculator program. you can a clearer picture of what can be a simple c language program here:


What is the difference between simple random sampling and systematic random sampling?

simple random sample is to select the sample in random method but systematic random sample is to select the sample in particular sequence (ie 1st 11th 21st 31st etc.)&acirc;&euro;&cent; Simple random sample requires that each individual is separately selected but systematic random sample does not selected separately.&acirc;&euro;&cent; In simple random sampling, for each k, each sample of size k has equal probability of being selected as a sample but it is not so in systematic random sampling.


Compare the efficiency of simple random sampling with systematic random sampling for estimating the population mean and give your comments?

Compare the efficiency of simple random sampling with systematic random sampling for estimating the population mean and give your comments.


What is th English to yugoslavian translation for the word simple?

There is no such language as "Yugoslavian." Please specify: Bosnian, Macedonian, Croatian, Serbian, or Slovenian.


When individuals all have an equal chance of being selected and all samples have an equal chance of being selected its called a stratified random example convenience cluster or simple random sample?

Simple random sampling.