Calculating the lottery numbers: 100% correct numbers – 100% safe!
Crypto in action: The se.SAM™ N200 Crypto Appliance is suitable for calculating the correct lottery numbers “6 out of 49” – 100% correct numbers and 100% security, for which we offer customers of the appliance a free Python program.
Technical requirements:
- 1x Linux System with Python 3.7+
- 1x se.SAM™ N200 Crypto Appliance
- 6 hours of calculation time for the correct lotto result of the next draw
Now copy the following Python program into a directory on the Linux system and adapt the REST API configuration to the se.SAM™ N200 Crypto Appliance.
#!/usr/bin/python3 import random import requests as reqs from requests.auth import HTTPBasicAuth import json import urllib3 import sys urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) probability=100 if len(sys.argv) > 1: probability = int(sys.argv[1].replace("%","")) balls=calculation=45 # 6 out of *45* or 6 out of *49* possible_tips=1 for ball in [6,5,4,3,2,1]: # at 6 out 45 will calculate 8145060 possible tips possible_tips=possible_tips*(balls/calculation) calculation-=1 tip=[] calculate_tip=0 hardware=False loop=True while loop: if hardware: data = {'command': 'getrandom', 'numbers': 10000} response = reqs.post('https://192.168.178.63/n200/web/postv1',data, auth=('admin','admin'), verify=False) if response.status_code == 200: results = json.loads(response.text) randoms=int(len(results['result'])/2) rand=bytes.fromhex(results['result']) else: print("Error no more random numbers!") break else: randoms=10000 rand = random.randbytes(randoms) for i in range(randoms): if rand[i] >= balls*5: # Correcting the entropy continue number=(rand[i]%balls)+1 if number not in tip: tip.append(zahl) if len(tip) >= 6: tip.sort() for number in tip: print(f"{number} ",end='') print() calculate_tip+=1 tip=[] if calculate_tip > possible_tips/(probability/100): loop=False break
The se.SAM™ N200 Crypto Appliance needs about 6 hours to calculate the lottery numbers for the next draw.
How is the caculation done?
When calculating the lotto numbers, the Multi-Source True Random Number Generator of the se.SAM™ N200 Crypto Cores is used to determine the matching six numbers to its maximum entropy. In each determination process, only different groups of numbers are selected and noted in ascending order.
Up to 100% probability!
The result of the calculation can be output via the following command:
$ python3 ./lotto.py 100%
Alternatively, the result can be stored in a lottery result file:
$ python3 ./lotto.py 100% > lottozahlen_vom_01April2022
You can reduce or increase the value 100%. Values below 100% (e.g. 50%) reduce the probability of calculating the correct lottery numbers. Values above 100% (e.g. 150%) increase the calculation effort, but also the probability of correctly determining the lottery numbers.
Checking the lottery numbers!
To check the lottery numbers after the draw, use the following Linux command. Here is an example of the lottery numbers for Wednesday, 1 April 2020:
$ grep “4 15 22 39 46 48“ lottozahlen_vom_01April2020
4 15 22 39 46 48
Redeeming the Lotto winnings
The correct result can be found in the following file with about 100% probability:
$ ls -al lottozahlen_vom_01April2022
-rw-r--r-- 1 april april 139M 2022-02-11 15:50 sw3.txt
Note: In order to redeem the determined result in the lottery, you must tap the determined values as a lottery tip. For the 50% probability of the correct tip, about 4 million tips have to be played, for a 100% probability about 8.1 million tips. For 6 out of 49, the probability is about 1 : 15.5 million. Please compare the costs of the tips with the expected lottery winnings.
You can find more information at the following link.