mardi 19 février 2019

Generate multiple float equal to a number or float

I just want to do a simple function that give you for example 2 float, and that 2 float added together would equal to 3, in python. One example result: 2.513 and 0.487

I saw an answer with this link: Generate multiple random numbers to equal a value in python but this is with number and I want float.




Aucun commentaire:

Enregistrer un commentaire