lundi 13 juin 2016

How to pick a random no from a list (contain 1 to n values) with certain thresold value?

I have a list like below:

l=[1,2,3,4,5]
thresold value = 0.5

From this list , I want to pick a random no which is > thresold value (0.5).

Thanking you in advance




Aucun commentaire:

Enregistrer un commentaire