I have made a powershell simulator wheel generator script that crates 2 set of random numbers called Quick Pick and Lottery both are out of 80 numbers this script will pick 10 matching numbers and the script will stop when it reaches 100 matching numbers , All matching numbers are then saved in a .csv called Keno.csv in C:\windows\Temp
Note : You can edit existing variables below to suit you in the script ,,, I use it for keno but it can be used for other lottery's as well !!!
$Drive = "C:\windows\Temp" # where you want the csv file saved
$file = "$Drive\keno.csv" #name of the csv file
$numbers = 1..80 # how many numbers you want to pick
$count = 20 # pick 20 out of 80 numbes
$matchCount = 10 # count how many numbers you want to look for as a match out of 80 numbers
$numberoftickets = 100 # # once 100 matching numbers stop lotto simulator wheel generator
What the Out put of the script look like when running:
Total of Matching numbers So Far is: 14 Note the lotto simulator will stop at 100
Quick Pick Numbers: 1,3,9,16,18,21,22,23,24,29,33,38,46,52,53,60,75,77,78,79
Lottery Numbers: 67,46,63,42,37,44,75,38,33,79,78,36,21,9,3,49,24,48,58,5
Found 10 Macthing Numbers: 3 9 21 24 33 38 46 75 78 79
keno.csv file of matching numbers looks like this format
| 23 24 34 35 45 47 63 67 76 77 |
| 32 39 40 44 45 49 52 54 64 76 |
| 4 43 44 53 57 59 62 70 72 75 |
| 1 11 20 22 26 27 30 33 78 79 |
| 28 30 40 43 45 47 60 67 76 77 |
| 9 13 14 23 31 34 45 49 53 63 |
| 13 14 16 28 29 36 39 49 63 70 |
| 2 3 17 25 36 40 60 70 73 80 |
| 2 3 8 13 26 30 35 38 41 46 |
| 2 11 16 24 37 40 54 66 70 73 |
| 16 23 27 29 30 43 46 47 53 58 |
| 17 25 27 35 47 48 49 57 60 76 |
| 15 27 31 33 37 38 46 51 57 65 |
| 3 9 21 24 33 38 46 75 78 79 |