Pennsylvania Lottery - Match 6 (2024)

Match 6 Lotto is the PA Lottery game that gives you more ways to match winning Lottery numbers and a chance to win up to four Lottery prizes in each game!

Winning Numbers History

'); var pagerContent = ''; pagerContent += 'of' + numPages + ''; pagerContent += ''; pagerContent += ''; pagerContent += ''; $pager.append(pagerContent); $pager.insertBefore($('#results-count')).find('span.page-number:first').addClass('active'); if(pageSize == 'all') { $('#pageNumControls').hide(); } else { $('#pageNumControls').show(); $(".pagi_backward").unbind( "click" ); $('.pagi_backward').click(function (event) { event.stopImmediatePropagation(); var currentPageNumber = (Number($('#pageNumberEnter').val())-1); currentPageNumber--; if(currentPageNumber >= 0) { currentPage = currentPageNumber; $table.trigger('repaginate'); $('#pageNumberEnter').val((currentPage+1)); } return false; }); $(".pagi_forward").unbind( "click" ); $('.pagi_forward').click(function (event) { event.stopImmediatePropagation(); var currentPageNumber = (Number($('#pageNumberEnter').val())-1); currentPageNumber++; if(currentPageNumber <= (numPages-1)) { currentPage = currentPageNumber; $table.trigger('repaginate'); $('#pageNumberEnter').val((currentPage+1)); } return false; }); $("#pageNumberEnter").unbind( "keyup" ); $('#pageNumberEnter').keyup(function(event){ event.stopImmediatePropagation(); var currentPageNumber = (Number($('#pageNumberEnter').val())-1); if(currentPageNumber >= 0 && currentPageNumber <= (numPages-1)) { currentPage = currentPageNumber; $table.trigger('repaginate'); } }); } }); }, processResults: function(results) { var i = 0; var gameID = String($('.hmnewEntryForm input[name=searchGame]').val()); switch(gameID) { case '15': HMNEW.displayMegaMillionsResults(results); break; case '12,36': HMNEW.displayPowerballResults(results); break; case '35': HMNEW.displayCash4LifeResults(results); break; case '7': HMNEW.displayTreasureHuntResults(results); break; case '8': HMNEW.displayCash5Results(results); break; case '11': HMNEW.displayMatch6Results(results); break; case '31': HMNEW.displayPick2Results(results); break; case '27': HMNEW.displayPick2Results(results); break; case '31,27': HMNEW.displayPick2Results(results); break; case '1,32': HMNEW.displayDailyNumberResults(results); break; case '2,28': HMNEW.displayDailyNumberResults(results); break; case '1,2,32,28': HMNEW.displayDailyNumberResults(results); break; case '3,33': HMNEW.displayBig4Results(results); break; case '4,29': HMNEW.displayBig4Results(results); break; case '3,4,33,29': HMNEW.displayBig4Results(results); break; case '5,34': HMNEW.displayQuintoResults(results); break; case '6,30': HMNEW.displayQuintoResults(results); break; case '5,6,34,30': HMNEW.displayQuintoResults(results); break; } // need to apply paging functions here HMNEW.paginateResults(10); $(".search-results").fadeIn("fast", function () { HMNEW.unblock(); $.scrollTo('#searchresults', 800); }); }, getNodeValue: function(nodeName, content) { var val = ""; var rx = new RegExp("<" + nodeName + ">.*?<\\/" + nodeName + ">"); val = String(rx.exec(content)); val = val.split("<" + nodeName + ">").join(""); val = val.split("" + nodeName + ">").join(""); return val; }, displayCash5Results: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var context = { results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing"]; for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } //matched 2 if (hitNum == 2) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 3 if (hitNum == 3) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 4 if (hitNum == 4) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 5 if (hitNum == 5) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayMatch6Results: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num6]').val())); var context = { results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5, results[i].drawingNumber6); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"] for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } //matched 3 if (hitNum == 3) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived36', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 4 if (hitNum == 4) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived46', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 5 if (hitNum == 5) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived56', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 6 if (hitNum == 6) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived66', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber6 + '
  • '; drawingNumbersHtml += '

'; drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayTreasureHuntResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var context = { results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing"] for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } //matched 2 if (hitNum == 2) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 3 if (hitNum == 3) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 4 if (hitNum == 4) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 5 if (hitNum == 5) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayBig4Results: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); var context = { results: [], straightboxedonly: true,pick: true }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var drawTime = null; for (i = 0; i < resultsLength; i++) { var boxed = false; var prizeAmount = "0.0" var classes = ["hit", "hit", "hit", "hit"]; if (results[i].drawingNumber1 == selectedNumbers[0] && results[i].drawingNumber2 == selectedNumbers[1] && results[i].drawingNumber3 == selectedNumbers[2] && results[i].drawingNumber4 == selectedNumbers[3]) { prizeAmount = HMNEW.getNodeValue('StraightBet', results[i].drawingNumberPayoutData); } else { prizeAmount = HMNEW.getNodeValue('BoxedBet', results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • ';if (results[i].drawingNumber5 != null) { drawingNumbersHtml += '
  • Pennsylvania Lottery - Match 6 (1)' + results[i].drawingNumber5 + '
  • '; } drawingNumbersHtml += '

'; if (Number(results[i].drawingGameID) == 3 || Number(results[i].drawingGameID) == 33) { drawTime = '
Day'; } else { drawTime = '
Evening'; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), drawingTime: drawTime, payoutLink: 'Payout ' }; context.results.push(drawing); } //context.resultcount = numberOfResults; context.resultcount = resultsLength; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayPick2Results: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); var context = { results: [], straightboxedonly: true,pick: true }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var drawTime = null; for (i = 0; i < resultsLength; i++) { var boxed = false; var prizeAmount = "0.0" var classes = ["hit", "hit"]; if (results[i].drawingNumber1 == selectedNumbers[0] && results[i].drawingNumber2 == selectedNumbers[1]) { prizeAmount = HMNEW.getNodeValue('StraightBet', results[i].drawingNumberPayoutData); } else { prizeAmount = HMNEW.getNodeValue('BoxedBet', results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • ';if (results[i].drawingNumber3 != null) { drawingNumbersHtml += '
  • Pennsylvania Lottery - Match 6 (2)' + results[i].drawingNumber3 + '
  • '; } drawingNumbersHtml += '

'; if (Number(results[i].drawingGameID) == 31) { drawTime = '
Day'; } else { drawTime = '
Evening'; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), drawingTime: drawTime, payoutLink: 'Payout ' }; context.results.push(drawing); } //context.resultcount = numberOfResults; context.resultcount = resultsLength; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayDailyNumberResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); var context = { results: [], straightboxedonly: true,pick: true }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var drawTime = null; for (i = 0; i < resultsLength; i++) { var boxed = false; var prizeAmount = "0.0" var classes = ["hit", "hit", "hit"]; if (results[i].drawingNumber1 == selectedNumbers[0] && results[i].drawingNumber2 == selectedNumbers[1] && results[i].drawingNumber3 == selectedNumbers[2]) { prizeAmount = HMNEW.getNodeValue('StraightBet', results[i].drawingNumberPayoutData); } else { prizeAmount = HMNEW.getNodeValue('BoxedBet', results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • ';if (results[i].drawingNumber4 != null) { drawingNumbersHtml += '
  • Pennsylvania Lottery - Match 6 (3)' + results[i].drawingNumber4 + '
  • '; } drawingNumbersHtml += '

'; if (Number(results[i].drawingGameID) == 1 || Number(results[i].drawingGameID) == 32) { drawTime = '
Day'; } else { drawTime = '
Evening'; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), drawingTime: drawTime, payoutLink: 'Payout ' }; context.results.push(drawing); } //context.resultcount = numberOfResults; context.resultcount = resultsLength; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayQuintoResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var context = { results: [], straightboxedonly: true,pick: true }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var drawTime = null; for (i = 0; i < resultsLength; i++) { var boxed = false; var prizeAmount = "0.0" var classes = ["hit", "hit", "hit", "hit", "hit"]; if (results[i].drawingNumber1 == selectedNumbers[0] && results[i].drawingNumber2 == selectedNumbers[1] && results[i].drawingNumber3 == selectedNumbers[2] && results[i].drawingNumber4 == selectedNumbers[3] && results[i].drawingNumber5 == selectedNumbers[4]) { prizeAmount = HMNEW.getNodeValue('StraightBetPayout', results[i].drawingNumberPayoutData); } else { prizeAmount = HMNEW.getNodeValue('BoxedBetPayout', results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • ';if (results[i].drawingNumber6 != null) { drawingNumbersHtml += '
  • Pennsylvania Lottery - Match 6 (4)' + results[i].drawingNumber6 + '
  • '; } drawingNumbersHtml += '

'; if (Number(results[i].drawingGameID) == 5 || Number(results[i].drawingGameID) == 34) { drawTime = '
Day'; } else { drawTime = '
Evening'; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), drawingTime: drawTime, payoutLink: 'Payout ' }; context.results.push(drawing); } //context.resultcount = numberOfResults; context.resultcount = resultsLength; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayPowerballResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var pbNum = Number($('.hmnewEntryForm input[name=num6]').val()); var context = { powerball: true, results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var matchingDoublePlayDrawing = null; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var powerBallMatch = false; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; var prizeAmountDp = "0.0" matchingDoublePlayDrawing = null; // check for matching double play drawing if(results[i].drawingGameID == 12) { for (var dp = 0; dp < resultsLength; dp++) { if(results[dp].drawingGameID == 36 && moment(results[i].drawingNumberDate).utc().format('L') == moment(results[dp].drawingNumberDate).utc().format('L')) { matchingDoublePlayDrawing = results[dp]; break; } } } winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"]; for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } if (results[i].drawingNumber6 == pbNum) { powerBallMatch = true; classes[5] = "hit"; } //players matched the Power Ball if (hitNum == 0 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 1 of 5 and the Power Ball if (hitNum == 1 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb1', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb1', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 2 of 5 and the Power Ball if (hitNum == 2 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb2', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 if (hitNum == 3 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 and the Power Ball if (hitNum == 3 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb3', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 if (hitNum == 4 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 and the Power Ball if (hitNum == 4 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb4', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 if (hitNum == 5 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 and the Power Ball if (hitNum == 5 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived6', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp6', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null' || prizeAmount == '0.0') { prizeAmount = 'Non-winner'; } if (typeof powerPlayAmount == 'undefined' || powerPlayAmount == null || powerPlayAmount == 'null' || powerPlayAmount == '0.0') { powerPlayAmount = 'N/A'; } // double play match checking var dpClasses = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"]; if(matchingDoublePlayDrawing != null) { hitNum = 0; powerBallMatch = false; winningNumbers = []; winningNumbers.push(matchingDoublePlayDrawing.drawingNumber1, matchingDoublePlayDrawing.drawingNumber2, matchingDoublePlayDrawing.drawingNumber3, matchingDoublePlayDrawing.drawingNumber4, matchingDoublePlayDrawing.drawingNumber5); for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; dpClasses[k] = "hit"; } } } if (matchingDoublePlayDrawing.drawingNumber6 == pbNum) { powerBallMatch = true; dpClasses[5] = "hit"; } //players matched the Power Ball if (hitNum == 0 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 1 of 5 and the Power Ball if (hitNum == 1 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb1', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 2 of 5 and the Power Ball if (hitNum == 2 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb2', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 3 of 5 if (hitNum == 3 && !powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceived3', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 3 of 5 and the Power Ball if (hitNum == 3 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb3', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 4 of 5 if (hitNum == 4 && !powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceived4', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 4 of 5 and the Power Ball if (hitNum == 4 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb4', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 5 of 5 if (hitNum == 5 && !powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceived5', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 5 of 5 and the Power Ball if (hitNum == 5 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceived6', matchingDoublePlayDrawing.drawingNumberPayoutData); } if (typeof prizeAmountDp == 'undefined' || prizeAmountDp == null || prizeAmountDp == 'null' || prizeAmountDp == '0.0') { prizeAmountDp = 'Non-winner'; } } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; if(matchingDoublePlayDrawing != null) { drawingNumbersHtml += '
  • Powerball:
  • '; } drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawingNumbersHtml += 'PB: ' + results[i].drawingNumber6 + ''; if (String(results[i].drawingNumber7).length > 0 && String(results[i].drawingNumber7) != 'null') { drawingNumbersHtml += 'PP: ' + results[i].drawingNumber7 + ''; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic powerballPrize: powerPlayAmount, // this is the powerplay number drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ', payoutDpLink: 'Payout ', hasPBDoublePlay: (results[i].drawingGameID == 12 && matchingDoublePlayDrawing != null), doublePlayStr: '', prizeDp: prizeAmountDp, hasPowerPlayPrize: (powerPlayAmount != 'N/A') }; if(matchingDoublePlayDrawing != null) { drawing.doublePlayStr = '

    '; drawing.doublePlayStr += '
  • Double Play:
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber1'] + '
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber2'] + '
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber3'] + '
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber4'] + '
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber5'] + '
  • '; drawing.doublePlayStr += '
  • PB:
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber6'] + '
  • '; drawing.doublePlayStr += '

'; } if(results[i].drawingGameID != 36) { context.results.push(drawing); } } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayCash4LifeResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var pbNum = Number($('.hmnewEntryForm input[name=num6]').val()); var context = { results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var powerBallMatch = false; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"]; for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } if (results[i].drawingNumber6 == pbNum) { powerBallMatch = true; classes[5] = "hit"; } //players matched 1 of 5 and the Power Ball if (hitNum == 1 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb1', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb1', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 2 of 5 if (hitNum == 2 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived2', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceived2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 2 of 5 and the Power Ball if (hitNum == 2 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb2', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 if (hitNum == 3 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 and the Power Ball if (hitNum == 3 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb3', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 if (hitNum == 4 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 and the Power Ball if (hitNum == 4 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb4', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 if (hitNum == 5 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 and the Power Ball if (hitNum == 5 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived6', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp6', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (typeof powerPlayAmount == 'undefined' || powerPlayAmount == null || powerPlayAmount == 'null') { powerPlayAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawingNumbersHtml += 'Cash Ball: ' + results[i].drawingNumber6 + ''; drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic powerballPrize: powerPlayAmount, // this is the powerplay number drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayMegaMillionsResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var mmNum = Number($('.hmnewEntryForm input[name=num6]').val()); var context = { megamillions: true, results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var megaBallMatch = false; var prizeAmount = "0.0" var megaplierAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"]; for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } if (results[i].drawingNumber6 == mmNum) { megaBallMatch = true; classes[5] = "hit"; } //players matched the Mega Ball if (hitNum == 0 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 1 of 5 and the Mega Millions if (hitNum == 1 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb1', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb1', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 2 of 5 and the Mega Millions if (hitNum == 2 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb2', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 if (hitNum == 3 && !megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmp3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 and the Mega Millions if (hitNum == 3 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb3', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 if (hitNum == 4 && !megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmp4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 and the Mega Millions if (hitNum == 4 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb4', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 if (hitNum == 5 && !megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmp5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 and the Mega Millions if (hitNum == 5 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived6', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmp6', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (typeof megaplierAmount == 'undefined' || megaplierAmount == null || megaplierAmount == 'null') { megaplierAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawingNumbersHtml += 'Mega Ball: ' + results[i].drawingNumber6 + '
'; if (String(results[i].drawingNumber7).length > 0 && String(results[i].drawingNumber7) != 'null') { drawingNumbersHtml += 'Megaplier: ' + results[i].drawingNumber7; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic megaplierPrize: megaplierAmount, // this is the powerplay number drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, initValidation: function() { var gameID = String($('.hmnewEntryForm input[name=searchGame]').val()); switch(gameID) { case '15': HMNEW.currentValidationRules = NumberInputValidationRules.megamillions; break; case '12,36': HMNEW.currentValidationRules = NumberInputValidationRules.powerball; break; case '35': HMNEW.currentValidationRules = NumberInputValidationRules.cash4life; break; case '7': HMNEW.currentValidationRules = NumberInputValidationRules.treasurehunt; break; case '8': HMNEW.currentValidationRules = NumberInputValidationRules.cash5; break; case '11': HMNEW.currentValidationRules = NumberInputValidationRules.match6; break; case '31': HMNEW.currentValidationRules = NumberInputValidationRules.pick2; break; case '27': HMNEW.currentValidationRules = NumberInputValidationRules.pick2; break; case '31,27': HMNEW.currentValidationRules = NumberInputValidationRules.pick2; break; case '1,32': HMNEW.currentValidationRules = NumberInputValidationRules.dailynumber; break; case '2,28': HMNEW.currentValidationRules = NumberInputValidationRules.dailynumber; break; case '1,2,32,28': HMNEW.currentValidationRules = NumberInputValidationRules.dailynumber; break; case '3,33': HMNEW.currentValidationRules = NumberInputValidationRules.big4; break; case '4,29': HMNEW.currentValidationRules = NumberInputValidationRules.big4; break; case '3,4,33,29': HMNEW.currentValidationRules = NumberInputValidationRules.big4; break; case '5,34': HMNEW.currentValidationRules = NumberInputValidationRules.quinto; break; case '6,30': HMNEW.currentValidationRules = NumberInputValidationRules.quinto; break; case '5,6,34,30': HMNEW.currentValidationRules = NumberInputValidationRules.quinto; break; } }, validateNumberEntry: function(elem) { var num = $(elem).val().trim(); var isError = false; if (!HMNEW.isGameNumber(num)) { if(num.length > 0) { isError = true; HMNEW.displayValidationErrors('Please enter numbers only.'); } } else { num = Number(num); var minNumber = HMNEW.currentValidationRules.minNumber; var maxNumber = HMNEW.currentValidationRules.maxNumber; if($(elem).hasClass('multiplier')) { maxNumber = HMNEW.currentValidationRules.maxMultiplierNumber; } if(num < minNumber || num > maxNumber) { isError = true; HMNEW.displayValidationErrors('This number must be between ' + minNumber + ' and ' + maxNumber + '.'); } else { if(!HMNEW.currentValidationRules.duplicates && !$(elem).hasClass('multiplier')) { var $inputNums = $(".hmnewEntryForm input.inputNum").not('.multiplier'); var currentIndex = $(elem).index(); var found = false; $inputNums.each(function(){ if($(this).index() != currentIndex && $(this).val().trim() == num) { found = true; } }); if(found) { isError = true; HMNEW.displayValidationErrors('This game does not accept duplicate numbers.'); } } } } if(isError) { $(elem).val(''); } }, displayValidationErrors: function(errors) { $('.errormessage').html(errors); $('.errormessage').fadeIn('slow', function () { $(this).delay(3000).fadeOut('slow'); }); } } $(document).on("change", "select.pageSize", function (e) { e.stopImmediatePropagation(); HMNEW.block(); HMNEW.paginateResults($(this).val()); HMNEW.unblock(); }); $(document).on("blur", ".hmnewEntryForm input.inputNum", function (e) { e.stopImmediatePropagation(); var code = e.keyCode || e.which; if (code != '9' && code != '8' && code != '13') { HMNEW.validateNumberEntry(this); } }); /*$(document).on("keyup", ".hmnewEntryForm input.inputNum", function (e) { e.stopImmediatePropagation(); var maxlength = Number($(this).attr('maxlength')); if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 || // Allow: Ctrl+A (e.keyCode == 65 && e.ctrlKey === true) || // Allow: Ctrl+C (e.keyCode == 67 && e.ctrlKey === true) || // Allow: Ctrl+X (e.keyCode == 88 && e.ctrlKey === true) || // Allow: home, end, left, right (e.keyCode >= 35 && e.keyCode <= 39)) { // let it happen, don't do anything return; } // Ensure that it is a number and stop the keypress if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) { $(this).val(""); return; } if (maxlength < $(this).val().length) { $(this).val($(this).val().slice(0, maxlength)); } });*/ $(document).on("change", ".hmnewEntryForm select[name=drawtime]", function (e) { var drawTime = $(this).val(); $('.hmnewEntryForm input[name=searchGame]').val(drawTime); }); $(document).on("click", ".searchNumbersBtn", function (e) { e.stopImmediatePropagation(); var strDate1 = $('.hmnewEntryForm select#date1-month').val() + '/' + $('.hmnewEntryForm select#date1-day').val() + '/' + $('.hmnewEntryForm select#date1-year').val(); var strDate2 = $('.hmnewEntryForm select#date2-month').val() + '/' + $('.hmnewEntryForm select#date2-day').val() + '/' + $('.hmnewEntryForm select#date2-year').val(); var date1 = moment(strDate1); var date2 = moment(strDate2); var dd1 = document.getElementById('date1-month').value; var dd2 = document.getElementById('date1-day').value; var dd3 = document.getElementById('date1-year').value; var dd4 = document.getElementById('date2-month').value; var dd5 = document.getElementById('date2-day').value; var dd6 = document.getElementById('date2-year').value; var datesValid = true; if ((dd1 !== "" && (dd2 == "" || dd3 == "")) || (dd2 !== "" && (dd1 == "" || dd3 == "")) || (dd3 !== "" && (dd1 == "" || dd2 == "")) || (dd4 !== "" && (dd5 == "" || dd6 == "")) || (dd5 !== "" && (dd4 == "" || dd6 == "")) || (dd6 !== "" && (dd4 == "" || dd5 == ""))) { datesValid = false; }; if (!date1.isValid() && !date2.isValid()) { date1 = moment('01/01/1970'); date2 = moment(); } var gameID = String($('.hmnewEntryForm input[name=searchGame]').val()); var digitsValid = true; var digitValidMsg = ''; var digitCount = 0; var multiplierVal = String($('.hmnewEntryForm input.multiplier').val()); $('.hmnewEntryForm input.inputNum').each(function () { if($.trim($(this).val()).length > 0) { digitCount++; } }); if(gameID == '12,36') { // powerball digitsValid = ( ($.trim(multiplierVal).length > 0) || ($.trim(multiplierVal).length == 0 && digitCount >= HMNEW.currentValidationRules.digitsRequired) ); digitValidMsg = 'This game requires that you enter at least the Powerball or enter 3 numbers.'; } else if(gameID == '15') { // mega millions digitsValid = ( ($.trim(multiplierVal).length > 0) || ($.trim(multiplierVal).length == 0 && digitCount >= HMNEW.currentValidationRules.digitsRequired) ); digitValidMsg = 'This game requires that you enter at least the Mega Ball or enter 3 numbers.'; } else { digitsValid = (digitCount >= HMNEW.currentValidationRules.digitsRequired); digitValidMsg = 'This game requires that you enter at least ' + HMNEW.currentValidationRules.digitsRequired + ' numbers.'; } if(datesValid) { if(digitsValid) { if( ((date1.isValid() && date2.isValid()) || (strDate1.Length == 0 && strDate2.Length == 0)) && date1.valueOf() <= date2.valueOf() ) { HMNEW.trackGameSearch(); HMNEW.block(); $('.search-results').hide(); $('.search-results').empty(); var inputNums = []; $('.hmnewEntryForm input.inputNum').each(function () { if($(this).val().length > 1 && $(this).val().charAt(0) == '0') { $(this).val( $(this).val().substring(1) ); } inputNums.push($(this).val()); }); $.getJSON("/Custom/uploadedfiles/hmnew/Drawings.ashx?mode=search&d1=" + date1.format('L') + "&d2=" + date2.format('L') + "&nums=" + inputNums.join(",") + "&g=" + gameID, function (data) { HMNEW.processResults(data); }); } else { HMNEW.displayValidationErrors('Please enter two valid dates with the starting date occurring before the ending date.'); } } else { HMNEW.displayValidationErrors(digitValidMsg); } return false; } else { HMNEW.displayValidationErrors('Please enter a Month, Day and Year.'); } return false; }); $(document).ready(function () { var browserVersion = jQuery.browser.version.split("."); browserVersion = browserVersion[0]; if ( (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) === 7) || (typeof document.documentMode != 'undefined' && document.documentMode != null && document.documentMode == 7) ) { jQuery('#content').prepend('

It appears that you are using an unsupported version of this browser.

Old browsers can put your security at risk, slow down or prevent you from using all of the features on palottery.com. To get the best of palottery.com, please click here to download a supported browser.

'); jQuery('#page-content').show(); } HMNEW.init(); });

Scroll to see more results within the window.

Pennsylvania Lottery - Match 6 (2024)

FAQs

What are the odds of winning the PA Match 6? ›

The overall chances of hitting a jackpot through Match 6 Lotto in base play — by matching all six numbers in one line — are about 1 in 4.66 million, the Pennsylvania Lottery says. Correctly choosing 10 of the 18 total numbers can earn a $2,500 prize with odds of about 1 in 597,303.

How to win match 6 PA Lottery? ›

To win the big jackpot, your ticket must match all six numbers in any individual set to the Lottery's drawn numbers. Look for the Match 6 Lotto Lottery results to determine if you are a winner. If playing online, go to the My Drawings page after the drawing has ended to see if you won a prize!

What was the highest match 6 jackpot? ›

The game's record jackpot was a $7.3 million prize won by a single winning ticket sold in Cambria County for the Oct. 3, 2013, drawing.

When was the last time 666 came out in PA Lottery? ›

Drawing. Perry was the host of The Daily Number on April 24, 1980, when the drawing produced the number "666" for a then-record payout of $3.5 million (equivalent to $12.94 million in 2023), including $1.18 million (equivalent to $4.36 million in 2023) that went to eight people in on the scam.

What PA Lottery online game has the best odds? ›

Super Cash Buster by the numbers

Overall odds in Super Cash Buster are calculated at 1 in 3.21. These are awesome odds for players because nearly 1/3 of all rounds played result in a win of some kind. It won't take long before anyone playing this game sees its rewarding potential.

What are the odds of winning the 6 number Lottery? ›

Choosing 6 from 49

In a typical 6/49 game, each player chooses six distinct numbers from a range of 1–49. If the six numbers on a ticket match the numbers drawn by the lottery, the ticket holder is a jackpot winner—regardless of the order of the numbers. The probability of this happening is 1 in 13,983,816.

What are the 6 most common winning Lottery numbers? ›

The most frequently drawn winning numbers from the main barrel are 17, 7, 11, 2, 3 and 9, while the least frequently drawn are 33, 15, 34, 31, 26 and 1. The most frequently drawn Powerball numbers are 19 and 2, while the least frequently drawn Powerball numbers are 14 and 16.

How to guess winning Lottery numbers? ›

13 Ways Lottery Players Choose Their Winning Numbers
  1. Birthdays & Anniversaries. Many people choose numbers that hold personal significance, such as birthdays or special dates. ...
  2. Lucky Numbers. ...
  3. Going Random. ...
  4. Family Member's Ages. ...
  5. Random Patterns. ...
  6. Dreams & Intuition. ...
  7. Recurring Numbers. ...
  8. Fortune Cookies.
Jun 24, 2024

What lottery has the biggest jackpot now? ›

$2.04 billion

The largest lottery jackpot to date, a Powerball drawing, was won on Nov. 7, 2022.

How many numbers do you have to match to win the jackpot? ›

In order to win the Powerball jackpot you need to guess all six numbers correctly. However, you can still win some cash with just a few. The jackpot is now at $154 million for Wednesday's drawing after nobody claimed the prize from the last draw.

What is the highest NJ pick 6 jackpot? ›

The highest Pick-6 Lotto jackpot in New Jersey history, $48.9 million, is won by James and Eileen Rath of Union, Union County.

How did Nick Perry rig the lottery? ›

According to testimony, Perry asked Bock to find a way to weight the numbered ping-pong balls used for the lottery drawings. After experimenting, Bock found that a few grams of white latex paint, injected into the balls with a hypodermic needle, made them too heavy to be selected by the air-powered lottery machines.

What lottery numbers are picked the most? ›

Most common main numbers
  • 10: Drawn 63 times.
  • 3: Drawn 62 times.
  • 17: Drawn 60 times.
  • 46: Drawn 59 times.
  • 14: Drawn 59 times.
  • 31: Drawn 58 times.
  • 64: Drawn 58 times.
  • 8: Drawn 57 times.
Mar 20, 2024

Has anyone ever won the lottery in Pennsylvania? ›

May 21, 2021 – A Mega Millions® jackpot with a $516 million annuity value, the Pennsylvania Lottery's largest prize to date, is won by a single ticket sold in Levittown, Bucks County. It is the state's third Mega Millions jackpot win since the state joined the game in 2010, and has a cash value of $ 349.3 million.

What are the odds in favor of rolling a 6? ›

For example, suppose we roll a regular six-sided die and define event E to be "roll the number six." There is only one way to roll a six, and there are five ways not to roll a six. This ratio is 1 to 5. So, the odds in favor of rolling the number six is 1:5.

What are the odds of winning the PA Millionaire raffle? ›

Prizes and Chances
PRIZE LEVELSNUMBER OF PRIZESCHANCES OF WINNING
Top Prize41 in 125,000
Second Prize41 in 125,000
Third Prize1001 in 5,000
Fourth Prize5,8921 in 84.86
1 more row

What are the odds of winning the PA Cash 5? ›

The chances of winning a Quick Cash game are separate from the chances of winning the main Cash 5 game. The overall chances of winning in a Quick Cash game are 1 in 4.71. Chances of winning the Cash 5 jackpot prize are 1 in 962,598; the overall chances of winning any prize in the main Cash 5 game are about 1 in 10.5.

What happens if you win PA Lottery? ›

Most prize checks will arrive in between four and six weeks after your claim has been received at Lottery Headquarters and validated. Some claims submitted in December cannot be processed until January, so those prize payments and tax forms will be issued in the same calendar year.

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Prof. Nancy Dach

Last Updated:

Views: 5844

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Prof. Nancy Dach

Birthday: 1993-08-23

Address: 569 Waelchi Ports, South Blainebury, LA 11589

Phone: +9958996486049

Job: Sales Manager

Hobby: Web surfing, Scuba diving, Mountaineering, Writing, Sailing, Dance, Blacksmithing

Introduction: My name is Prof. Nancy Dach, I am a lively, joyous, courageous, lovely, tender, charming, open person who loves writing and wants to share my knowledge and understanding with you.