This lottery number generator is as universal as possible. Use the generic functions to build your own executable. EuroJackpot, Euromillion and 6aus49 have been implemented already.
If you have Nix installed with flakes enabled:
# Build the project
nix build
# Run EuroJackpot
./result/bin/EuroJackpotYou can also enter a development environment with all dependencies preloaded by running nix develop.
Requirements:
- cmake
- make
- libsodium
On Arch:
sudo pacman -S cmake make libsodiumFinally, build and run:
cmake .
make
./6aus49create a GAME_NAME.c file with the following contents:
#include "lottolib.h"
int main()
{
printf("GAME_NAME\n");
def(MIN, MAX, #NUMBERS, MIN_BONUS, MAX_BONUS, #BONUS_NUMBERS);
}Where:
GAME_NAMEis the name of the game, e.g. 'Eurojackpot'MIN,MAXand#NUMBERSare the minimum, maximum and number of numbers, e.g. 1,50 and 5 for 5 numbers between 1 and 50- and
BONUS_*are the modifiers for the additional number(s) working the same way as with the normal base numbers