mercredi 10 novembre 2021

python random number generator for long list of numbers

I was wondering if anyone could help me write a better program. My goal is to make a random number generatorm but it has very specific perameters. I need to find a random number that looks for a random number for unit numbers in a housing compley. the parameters are between 101-112, 114-125, 128-149, 201-230, 232-263, 265-280 and 300-305. I made a list with every number and then called the random number function, but I was just wondering if there was an easier way or a more concise way to make this program. Thank you!




Aucun commentaire:

Enregistrer un commentaire