Pennsylvania Lottery - PICK 4 (2024)

PICK 4 is big fun, and it’s easy to play! PICK 4 is the daily PA Lottery game that pays 5000 to 1 on a straight play when you match the winning Lottery numbers in either the PICK 4 day or PICK 4 evening games. Now, play PICK 4 with Wild Ball.

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 - PICK 4 (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 - PICK 4 (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 - PICK 4 (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 - PICK 4 (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 - PICK 4 (2024)

FAQs

What pick 4 comes out the most? ›

Pick 4 Number Frequencies
Pick 4 Numbers
Number# of times drawn% of times drawn
0674240.3%
1685240.95%
2660939.5%
8 more rows

What is the payout for PA pick 4 evening? ›

PICK 4 is the daily PA Lottery game that pays 5000 to 1 on a straight play when you match the winning Lottery numbers in either the PICK 4 day or PICK 4 evening games.

What channel is the PA lottery on? ›

FOX 29 is your Philadelphia-area home for the Pennsylvania Lottery! We bring you the results of all PA Lottery drawings as well as Mega Millions and Powerball.

How do you win Pick 4 Louisiana? ›

You can win a prize for matching your digits in exact order and/or in any order to those drawn. Combo: Covers every possible order of your digits to win a Straight prize.

What are the most popular win 4 numbers? ›

The most popular numbers chosen by players for New York's Numbers and Win 4 games are 111 and 0000, lottery organizers say. After 111, the next most popular Numbers choice is 222, followed by 333, 777 and 999. Among Win 4, they are 1111, 2222 and 3333.

What is the most winning 4-digit lottery number? ›

What Is the Most Popular Four-digit Lottery Number?
  • 1234. This sequence is favored for its simplicity and the sequential order of the digits. ...
  • 1111. Quadruple ones are a popular choice due to their simplicity and the visual appeal of repeating digits. ...
  • 7777. ...
  • 9999. ...
  • 1212. ...
  • 5678. ...
  • 2222. ...
  • 4321.
Jul 25, 2024

How do you claim Lottery winnings if you play online? ›

Bring your winning ticket and a completed Claim Form to a District Office. Pick up the Claim Form at any Lottery retail location or District Office, or download the form (PDF). For 2nd Chance prizes, there's a different Claim Form, which you can download at 2nd Chance Claim form (PDF).

What time is the Cash4Life drawing in PA? ›

Cash4Life is drawn every night at 9 p.m. Drawings are not televised but can be streamed online. Subscriptions available online. You can either select your own numbers, or the Quick Pick option will select them for you.

Is there an app for the PA Lottery? ›

Every effort is made to ensure the accuracy of the winning numbers, prize payouts and other information offered via the Pennsylvania Lottery's mobile app. The official winning numbers are those selected in the respective drawings and recorded under the observation of an independent accounting firm.

How does PA Pick 4 work? ›

Pick any four numbers from 0 to 9 or allow the terminal to randomly select your numbers via Quick Pick. Choose one play type: STRAIGHT, BOX, or STRAIGHT/BOX. Choose the drawing(s) you wish to play: Day, Evening or Both. Choose the number of draws you wish to play, up to one week in advance.

How many pick 4 combinations are there? ›

In any Pick 4 game, there are 4 digit positions, with each position containing a digit from 0 to 9. If one were to list all of the possible combinations of digits in each of the three positions, there would be a total of 10,000 different number combinations.

What is a pick 4 bet? ›

Pick 4: This wager requires bettors to select the winners of four consecutive races. It is one of the more accessible multi-race wagers, balancing difficulty and potential for high payouts. Pick 5: Similar to the Pick 4, but as the name suggests, bettors must pick the winners of five consecutive races.

What is the most common combination in Pick 4? ›

The odds of matching all four numbers in the exact order in a Pick 4 drawing are 1 in 10,000. The numbers 1-0-1-0 are one of the most popular combinations of numbers played in the Pick 4 game.

What is the largest payout in Pick 4 history? ›

According to officials, this Pick-4 resulted in a record payout of $8.3 million. Depending on the price of the ticket, Pick 4 winners took home $2,500 or $5,000 per play, officials say.

What is the most commonly picked number? ›

The ones that came up most often were 7, 73, 77 and 37. Participants were then asked to choose a number they thought would be the least selected. Setting aside the extreme values and the number 50 for being positioned centrally, the numbers that emerged as the most chosen were 73 and 37, almost at a tie.

What is the probability of picking the Pick 4? ›

The probability of picking the winning 4-digit number in a Pick 4 lottery is 1/10,000.

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Stevie Stamm

Last Updated:

Views: 6342

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.