mardi 19 janvier 2016

Random Access for Vector

I have a vector in C++ that has sorted data, I want to access the data in random order for shuffling the data. The problem with rand is that two indexes can be accessed at the same time and also when the last item remains there will be a lot of un-needed lookups. Any suggestions.




Aucun commentaire:

Enregistrer un commentaire