I am trying to make a level generator similar to that of Spelunky. The generator for Spelunky uses premade "chunks" to generate levels. I have created a very simple level generator that I can use to create the premade chunks that will fit into the level. The levels are saved on an array as a JSON file and I have put them into my game under the "Files" folder.
I would like to be able to load one of these JSON files randomly at runtime but I am not sure if there is a way to accomplish this. The only way I know to request a JSON from the files folder is to select it by name from a dropdown menu.
Is there anyway to call a JSON at random, for example, by having something like: Request File ["A"&round(random(0,10)) ]