fixed ArrayGetRandom to include the last item