Is there a direct function or any another way in python where I can generate random integers for my given size and I want to specify sum of those numbers as well.
For example. I want to generate 7 numbers whose sum is 341.
Can I also specify mean for this. Like 7 numbers with mean 165 and sum 341. (optional)
Aucun commentaire:
Enregistrer un commentaire