mercredi 17 mars 2021

Generating random numbers that include a specific number always - python [duplicate]

I want to generate numbers randomly while always including a specific number. For example, if I generate 5 numbers randomly from 1 to 10, one of the 5 numbers has to be 2 always. How do I do that in python?




Aucun commentaire:

Enregistrer un commentaire