this post was submitted on 13 Jun 2025
5 points (77.8% liked)

General Programming Discussion

8580 readers
1 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 6 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 5 days ago* (last edited 5 days ago) (1 children)

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).

[โ€“] [email protected] 4 points 4 days ago
>>> import random
>>> random.sample(range(1,71),5),random.choice(range(1,25))
([43, 8, 15, 66, 28], 17)