refac: moved *.py into a src folder

This commit is contained in:
Florian Sylvain
2025-03-28 00:35:22 +01:00
parent 70af79e4db
commit e981b0f393
4 changed files with 0 additions and 0 deletions
-32
View File
@@ -1,32 +0,0 @@
"""
This script generates random draws for EuroMillions using various entropy sources.
"""
import random
import numpy as _
from draw import Draw
from weather import Weather
from constants import NUMBER_OF_DRAWS
def main():
"""Main function that orchestrates the draw generation process"""
weather = Weather()
draw_generator = Draw(weather)
print(f"Generating {NUMBER_OF_DRAWS} different draws...")
draws = draw_generator.generate_draws(NUMBER_OF_DRAWS)
base_pool = draw_generator.get_static_entropy_pool()
random.seed(draw_generator.generate_seed(base_pool))
chosen_draw = random.choice(draws)
displayed_draws = {draws.index(chosen_draw)}
draw_generator.display_draw(chosen_draw, title="FINAL RESULT")
print("Draw selected from among the", NUMBER_OF_DRAWS, "generated")
draw_generator.display_additional_draws(draws, displayed_draws)
if __name__ == "__main__":
main()