i did something like and it gives me duplicate locations
while (true)
{
RandomLocations(Available, Location, indexes);
if (UsedLocationss.Find(indexes) == -1)
{
SpawnLocation = Location;
UsedLocationss.Add(indexes);
break;
}
}