loading Nth file (ordered alphabetically) from resources folder

I have 503 .csv files in resources folder, ordered alphabetically

I want to see if its possible to load Nth (N = UnityEngine.Random.Range(1, 503)) file from the folder

I considered renaming files from 1~503, but this was not preferable =(

you can use Resources.LoadAll to load all the resources to one list and then you can use it by Nth (N = UnityEngine.Random.Range(1, 503))

hmm… what should the object type be

bc afterwards i use stream reader to read the loaded csv file

StreamReader file = new StreamReader(new MemoryStream((loadedfile as TextAsset).bytes));

public Object[] objects;


    // Start is called before the first frame update
    void Awake()
    {
              objects = Resources.LoadAll("CSVFileFolder");
    }

This Code is working in my machine