jeudi 2 février 2017

algorithm for selecting N random elements from a List

I need a quick algorithm to select 4 random elements from a generic list. For example, I'd like to get 4 random elements from a List and then based on some calculations if elements found not valid then it should again select next 4 random elements from the list.




Aucun commentaire:

Enregistrer un commentaire