mercredi 27 janvier 2016

RANDOM #s. Type two statements using nextInt() to print two random integers between 0 and 9. End with a newline. Ex: 5 7

Hey all I'm having trouble figuring this out. Just learning java for the first time. Any help would be awesome thanks!

Type two statements using nextInt() to print two random integers between 0 and 9. End with a newline. Ex: 5 7

import java.util.Scanner;

import java.util.Random;

public class DiceRoll {
public static void main (String [] args) {

Random randGen = new Random();

int seedVal = 0;

randGen.setSeed(seedVal);

  `enter code here`/* Your solution goes here  */


return;
   }
}




Aucun commentaire:

Enregistrer un commentaire