Random pick a file from a given Folder
Hello Dear CSharp Programmers
I have a Question, lets say I have a folder with 1_000 Files. From this folder I would like to randomly pick 1_00. But every file should be taken only once.
How would this method look like ?
I tryed it by myself but it always take one file more then once.
my Code:
I wanted to also store all ever picked Files and always check if the newly picked random file has already used once or not but I couldnt manage to code it.
thank you for every help
0 Replies