Java Random Number Generator Test Questionnaire

* Remember to change file path for test.output.txt relative to the machine you are running the code on *

  1. Generate randomized dataset of numbers (1 to 20)
  2. Should contain following distribution:
  • 1-12 = 83000
  • 13 = 1000
  • 14 = 500
  • 15 = 250
  • 16 = 100
  • 17 = 50
  • 18 = 25
  • 19 = 10
  • 20 = 5
  1. No two consecutive numbers should be the same in generated dataset
  2. Write to txt file with one value per line
  3. On console display all lines on which value 20 appears