JSFiddle - React, Tailwind, and code Playground

HTML

<input id="tzoker" type="submit" value="Generate numbers!">
  <div id="results">
  </div>

JavaScript

var tzoker = $("#tzoker");
  var results = $("#results");
  tzoker.click(function() {
    results.empty();
     var properResults = [];
    var rand = 0;
    var contains = false;
    for (i = 1; i < 7; i++) {
        do 
        {
         (rand = Math.floor((Math.random() * (i != 6 ? 45 : 25)) + 1));
          contains = properResults.indexOf(rand) > -1;
        } while(contains)
        results.append("<br />", rand, "<br />");
        properResults.push(rand);
    }
  });