There are 10 weighted element in one array. I want to random N times and count every element's num. If there is an algorithm I can get the count of elements and don't need to random N times? 'N' may be a large number, it's ineffective.
Aucun commentaire:
Enregistrer un commentaire