{"name":"selectRandom","title":"selectRandom","type":"command","url":"https://community.bistudio.com/wiki/selectRandom","revid":377101,"updated":"2026-01-01T09:58:32Z","groups":["Arrays"],"status":"ok","games":{"arma3":"1.56"},"since":"arma3 1.56","arma3_since":"1.56","description":"Returns a random element from the given array. Engine solution to BIS_fnc_selectRandom","syntaxes":[{"syntax":"selectRandom array","params":[{"name":"array","type":"Array of Anything","type_expr":"Array<Anything>"}],"returns":{"type":"Anything","type_expr":"Anything","description":"random selected value or Nothing if array is empty"},"form":"unary","right":{"text":"array"}}],"examples":[{"code":["_randomElement = selectRandom [1,2,3,4,5];"]}],"see_also":["selectRandomWeighted","random","select","selectMin","selectMax"]}