lundi 8 mars 2021

C#: Obtain a list of index based on total count of List [closed]

I need to get a sample of 10% of a list's count so that I can check some data values to see what data type they are.

If the list has 10,000 records, I need the code to return a random sample of 1000 indexes so I can check those values.

I was curious what the different ways to do this in C# could be.

Thanks.




Aucun commentaire:

Enregistrer un commentaire