Support random element on array index