lundi 9 août 2021

How to generate random float numbers?

I want to generate random number between 0 and 1 in python code but only get 2 numbers after sign . Example:

 0.22 
 0.25
 0.9

I have searched many sources but have not found the solution. Can you help me?




Aucun commentaire:

Enregistrer un commentaire