fileRandom
Syntax
string fileRandom(searchQuery)
Parameters
- searchQuery (string)
Search query to apply on list of all files in the workspace. See fileSearch / filesSearch for details about the syntax.
Returns
Returns random file from list specified in searchQuery.
Description
This function returns a random file from the files specified by searchQuery.
Related
- assetApproxRatio function
- assetApproxSize function
- assetBestRatio function
- assetBestSize function
- assetFitSize function
- fileBasename function
- fileDirectory function
- fileExtension function
- fileName function
- imageApproxRatio function
- imageBestRatio function
Examples
fileRandom("assets/*.obj") # result = any one obj file from the assets dir
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.