string word = "House";
char[,] arr = new char[10, 10];
for (int x = 0; x < arr.GetLength(0); x++)
{
for (int y = 0; y < arr.GetLength(1); y++)
{
if(y < word.Length)
{
arr[x,y] = word[y];
} else
{
arr[x, y] = (char)(rchar.Next(65, 91));
}
Console.Write(arr[x, y] + " ");
}
Console.WriteLine();
}
public static void GetTheChar ()
{
string word = "House";
char[] searchWord = word.ToCharArray();
int row = 10;
int col = 10;
Random rnd = new Random();
var randomRowIndex = rnd.Next(0, 9);
var randomRow = randomRowIndex;
var randomCol = rnd.Next(0, 9);
for (int start = randomCol, index = 0; index < searchWord.Length && start < randomRow; ++start, ++index)
{
randomRow = randomRowIndex;
randomRowIndex = searchWord[start];
}