If I have a list like this: L = [1, 1, 1, 1, 1, 1, -1] Does it make sure that when I generate a random number from the list, the chance to get a '1' will be higher than the chance to get a '-1'?
Aucun commentaire:
Enregistrer un commentaire