https://www.njlottery.com/en-us/drawgames/dailygames/jerseycash.html#pdfI have calculated the least drawn numbers in the past year (1 through 43 are possible numbers). I have concluded that I will play the following numbers, over and over again: 09 24 30 37 43
I simply copy/pasted the entire table into a text file called lotto.
grep "[0-9][0-9] [0-9][0-9]" lotto
This gave me a nice list of all the numbers, like so:
01 08 10 19 40
11 20 24 29 42
07 14 17 20 36
02 04 06 26 34
12 13 20 26 38
07 27 32 34 36
…
#!/bin/bash
for i in $(seq -w 1 43) ; do
echo "$i occurred:" $(grep -c $i lottoformat) >> lottolist
done
This gives me a list like so.
01 occurred: 43
02 occurred: 43
03 occurred: 39
04 occurred: 41
05 occurred: 38
06 occurred: 43
07 occurred: 37
08 occurred: 54
09 occurred: 33
10 occurred: 49
11 occurred: 38
12 occurred: 36
13 occurred: 39
14 occurred: 35
15 occurred: 41
16 occurred: 42
17 occurred: 41
18 occurred: 52
19 occurred: 40
20 occurred: 45
21 occurred: 45
22 occurred: 36
23 occurred: 43
24 occurred: 33
25 occurred: 43
26 occurred: 51
27 occurred: 43
28 occurred: 40
29 occurred: 45
30 occurred: 25
31 occurred: 51
32 occurred: 44
33 occurred: 50
34 occurred: 36
35 occurred: 40
36 occurred: 48
37 occurred: 31
38 occurred: 56
39 occurred: 49
40 occurred: 50
41 occurred: 50
42 occurred: 50
43 occurred: 32