fileRandom function
string fileRandom(searchQuery)
searchQuery string Search query to apply on list of all files in the workspace. See fileSearch / filesSearch for details about the syntax.
Returns a random file from the list specified in searchQuery.
This function returns a random file from the files specified by searchQuery.
Related
Examples
fileRandom("assets/*.obj")
# result = any one obj file from the assets dir