Ask Question
1 July, 03:13

Type two statements that use nextint () to print 2 random integers between (and including) 100 and 149. end with a newline. ex: 112 102

+2
Answers (1)
  1. 1 July, 03:27
    0
    NB - Solution is emboldened

    import java. util. Scanner;

    import java. util. Random;

    public class RandomGenerateNumbers {

    public static void main (String [] args) {

    Random randGen = new Random ();

    int seedVal = 0;

    seedVal = 4;

    randGen. setSeed (seedVal);

    System. out. println (randGen. nextInt (50) + 100);

    System. out. println (randGen. nextInt (50) + 100);

    return;

    }

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Type two statements that use nextint () to print 2 random integers between (and including) 100 and 149. end with a newline. ex: 112 102 ...” in 📘 Mathematics if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers