local places = {
{x=123,y=321,z=7},
{x=321,y=123,z=7},
{x=213,y=312,z=8}
} -- array of possible places
local placeId = math.random(1,#places); -- generates number from 1 to number of array elements in this case 3 (both numbers are inclusive [x >= lowerValue AND x <= upperValue])
local place = places[placeId] -- select element by placeId
doTeleportThing(cid,place) -- teleport creature to place