http://www.expertlotto.com/files/preview/digits.zip
download the zip archive and unpack it. then you'll need netbeans IDE (www.netbeans.org) to open the project and compile the plugin. the zip includes a complete expert lotto installation where the plugin gets installed. note - the plugin needs build 805 or better, it is included in the zip file.
it's very simple to implement similar stats (i think). here are the lines of code that do the actual stats calculations:
- Code: Select all
/**
* Calculate the index (the row number in the table starting with zero) for the
* numbers of the given package ticket.
* @param numbers ticket numbers
* @param bonuses ticket bonus numbers, only for powerball lotteries
* @param mask flags indicating whether the ticket number at given position is masked or not
* @param index ticket's index in the package (starting with zero)
*/
protected void doUpdate( int[] numbers, int[] bonuses, boolean[] mask, long index ) {
//number of first odd digits found
int firstOddCount = 0;
//number of last odd digits found
int lastOddCount = 0;
for( int i=0; i<numbers.length; i++ ) {
if( mask[i] )
continue; //ignore masked numbers
//get the first digit
int firstDigit = numbers[i] / 10;
if( firstDigit % 2 > 0 )
firstOddCount++; //first digit is odd, increment the counter
//get the last digit
int lastDigit = numbers[i] % 10;
if( lastDigit % 2 > 0 )
lastOddCount++; //last digit is odd, increment the counter
}
//update hit & skip stats
firstDigits.hitTotal( firstOddCount );
lastDigits.hitTotal( lastOddCount );
}
the plugin sources include an extra module for high/low stats for first digits that you can implement yourself.
so consider how much you can achieve with a few lines of code:
- add stats tables including all latest, skip, rank columns for package tickets and winning numbers
- add charts for the first and last digits
- add filtering capabilities for the given parameter (odd/even digits, high/low digits, digit sums etc...)
if there's enough interest i can prepare plugin templates for other types of statistics as well.
if you implement your own stats and want to share them with other, just email your plugin to me and i'll publish it at our web site.