I am trying to write a code that gives the probability of two people having the same birthday using a random seed. When I run an if statement I get the return "None". In my if statement I append a list with the random seed using : list1.append(random.seed(2020)).
Two questions: 1. Is the random.seed able to be called like that inside an if loop 2. Is there a way to limit the number range of what the random seed can produce since it needs to be a number between 1 and 365?
^Picture of my code
Aucun commentaire:
Enregistrer un commentaire