allora forzali, come avevi già fatto

rndID1 = CInt(arraygiochi(rndID1))
...
rndID2 = CInt(arraygiochi(rndID2))