For a school project I need to make a simple python program. I need ideas so if you have something that you want made for you then please post it here. I’ll release it here under a gnu general public license once I’ve finished.

  • Spaz@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    4 days ago

    Give me lotto numbers.

    Edit: to be more specific USA mega millions lotto numbers.

    five random numbers from 1 to 70 (the white balls) and one random number from 1 to 24 (the Mega Ball).

    • solrize@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      4 days ago
      >>> import random
      >>> random.sample(range(1,71),5),random.choice(range(1,25))
      ([43, 8, 15, 66, 28], 17)